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 committed 2023-01-27 00:57:24 +00:00
1 parent a13ffdbfba
commit 3647825a30
1 file changed
+1 -1
+1 -1
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)
{