Fixed battlerId in Poison Touch's confusionSeldDmg check

This commit is contained in:
LOuroboros 2021-11-01 11:56:25 -03:00 committed by GitHub
parent 4edee8f5d4
commit 30a8281d32
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5199,7 +5199,7 @@ u8 AbilityBattleEffects(u8 caseID, u8 battler, u16 ability, u8 special, u16 move
case ABILITY_POISON_TOUCH:
if (!(gMoveResultFlags & MOVE_RESULT_NO_EFFECT)
&& gBattleMons[gBattlerTarget].hp != 0
&& !gProtectStructs[gBattlerTarget].confusionSelfDmg
&& !gProtectStructs[gBattlerAttacker].confusionSelfDmg
&& CanBePoisoned(gBattlerTarget)
&& IsMoveMakingContact(move, gBattlerAttacker)
&& (Random() % 3) == 0)