mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-06-30 21:42:20 +02:00
Fixed cirrc dep isuse
This commit is contained in:
parent
374474720b
commit
14f5849502
@ -38,7 +38,6 @@ import {
|
|||||||
deltaRgb,
|
deltaRgb,
|
||||||
isBetween,
|
isBetween,
|
||||||
randSeedFloat,
|
randSeedFloat,
|
||||||
type nil,
|
|
||||||
type Constructor,
|
type Constructor,
|
||||||
randSeedIntRange,
|
randSeedIntRange,
|
||||||
coerceArray,
|
coerceArray,
|
||||||
@ -4109,7 +4108,7 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**@overload */
|
/**@overload */
|
||||||
getTag(tagType: BattlerTagType.GRUDGE): GrudgeTag | nil;
|
getTag(tagType: BattlerTagType.GRUDGE): GrudgeTag | undefined;
|
||||||
|
|
||||||
/** @overload */
|
/** @overload */
|
||||||
getTag(tagType: BattlerTagType.SUBSTITUTE): SubstituteTag | undefined;
|
getTag(tagType: BattlerTagType.SUBSTITUTE): SubstituteTag | undefined;
|
||||||
@ -4790,9 +4789,15 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
|
|||||||
|
|
||||||
// If the user is semi-invulnerable when put asleep (such as due to Yawm),
|
// If the user is semi-invulnerable when put asleep (such as due to Yawm),
|
||||||
// remove their invulnerability and cancel the upcoming move from the queue
|
// remove their invulnerability and cancel the upcoming move from the queue
|
||||||
const invulnTag = this.getTag(SemiInvulnerableTag);
|
const invulnTagTypes = [
|
||||||
if (invulnTag) {
|
BattlerTagType.FLYING,
|
||||||
this.removeTag(invulnTag.tagType);
|
BattlerTagType.UNDERGROUND,
|
||||||
|
BattlerTagType.UNDERWATER,
|
||||||
|
BattlerTagType.HIDDEN,
|
||||||
|
];
|
||||||
|
|
||||||
|
if (this.findTag(t => invulnTagTypes.includes(t.tagType))) {
|
||||||
|
this.findAndRemoveTags(t => invulnTagTypes.includes(t.tagType));
|
||||||
this.getMoveQueue().shift();
|
this.getMoveQueue().shift();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user