mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-23 16:52:24 +02:00
Break up imports
This commit is contained in:
parent
5967a4240a
commit
e128326e75
1872
src/battle-scene.ts
1872
src/battle-scene.ts
File diff suppressed because it is too large
Load Diff
@ -197,7 +197,7 @@ export class MoveEffectPhase extends PokemonPhase {
|
|||||||
&& (targets[0]?.getAbility()?.getAttrs(TypeImmunityAbAttr)?.[0]?.getImmuneType() === user.getMoveType(move))
|
&& (targets[0]?.getAbility()?.getAttrs(TypeImmunityAbAttr)?.[0]?.getImmuneType() === user.getMoveType(move))
|
||||||
&& !targets[0]?.getTag(SemiInvulnerableTag);
|
&& !targets[0]?.getTag(SemiInvulnerableTag);
|
||||||
|
|
||||||
const mayBounce = move.hasFlag(MoveFlags.REFLECTABLE) && !this.reflected && targets.some(t => t.hasAbilityWithAttr(ReflectStatusMoveAbAttr) || !!t.getTag(BattlerTagType.MAGIC_COAT));
|
const mayBounce = move.hasFlag(MoveFlags.REFLECTABLE) && !this.reflected && targets.some(t => t.hasAbilityWithAttr(ReflectStatusMoveAbAttr) || !!t.getTag(BattlerTagType.MAGIC_COAT));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* If no targets are left for the move to hit (FAIL), or the invoked move is non-reflectable, single-target
|
* If no targets are left for the move to hit (FAIL), or the invoked move is non-reflectable, single-target
|
||||||
|
Loading…
Reference in New Issue
Block a user