Add crit block abilities and fix some common anims

This commit is contained in:
Flashfyre committed 2023-05-01 22:07:00 -04:00
1 parent bfc26970f0
commit f6c7a2906d
5 files changed
+523 -515

No files matched your search

+1 -1
View File
@@ -673,7 +673,7 @@ export class CommandPhase extends FieldPhase {
break;
case Command.POKEMON:
const trapTag = playerPokemon.findTag(t => t instanceof TrappedTag) as TrappedTag;
const arenaTrapped = !!enemyPokemon.getAbility().getAttrs(ArenaTrapAbAttr).length;
const arenaTrapped = !!enemyPokemon.getAbility().hasAttr(ArenaTrapAbAttr);
const batonPass = args[0] as boolean;
if (batonPass || (!trapTag && !arenaTrapped)) {
this.scene.unshiftPhase(new SwitchSummonPhase(this.scene, cursor, true, args[0] as boolean));