Fix Poison Point

It incorrectly activated only if the Pokémon with Poison Point could be
poisoned by the attacker.
This commit is contained in:
Martin Griffin 2023-01-12 21:22:59 +00:00
parent a13ffdbfba
commit 3647825a30

View file

@ -5625,7 +5625,7 @@ u8 AbilityBattleEffects(u8 caseID, u8 battler, u16 ability, u8 special, u16 move
&& gBattleMons[gBattlerAttacker].hp != 0
&& !gProtectStructs[gBattlerAttacker].confusionSelfDmg
&& TARGET_TURN_DAMAGED
&& CanBePoisoned(gBattlerAttacker, gBattlerTarget)
&& CanBePoisoned(gBattlerTarget, gBattlerAttacker)
&& IsMoveMakingContact(move, gBattlerAttacker)
&& (Random() % 3) == 0)
{