fix pollen puff heal blocked battler in CanTargetBattler

This commit is contained in:
ghoulslash 2022-05-07 11:27:32 -04:00
parent 07579bd42b
commit 5456a87b83

View File

@ -10104,7 +10104,7 @@ bool32 CanTargetBattler(u8 battlerAtk, u8 battlerDef, u16 move)
{ {
if (gBattleMoves[move].effect == EFFECT_HIT_ENEMY_HEAL_ALLY if (gBattleMoves[move].effect == EFFECT_HIT_ENEMY_HEAL_ALLY
&& GetBattlerSide(battlerAtk) == GetBattlerSide(battlerDef) && GetBattlerSide(battlerAtk) == GetBattlerSide(battlerDef)
&& gStatuses3[battlerDef] & STATUS3_HEAL_BLOCK) && gStatuses3[battlerAtk] & STATUS3_HEAL_BLOCK)
return FALSE; return FALSE; // Pokémon affected by Heal Block cannot target allies with Pollen Puff
return TRUE; return TRUE;
} }