mirror of
https://github.com/pret/pokeemerald.git
synced 2026-06-02 22:05:46 -05:00
Fix redirection abilities triggering on self (#7276)
Co-authored-by: ghoulslash <pokevoyager0@gmail.com>
This commit is contained in:
parent
0a38be7dab
commit
476e32cad9
|
|
@ -7469,7 +7469,7 @@ u32 GetBattleMoveTarget(u16 move, u8 setTarget)
|
|||
else
|
||||
battlerAbilityOnField = IsAbilityOnOpposingSide(targetBattler, ABILITY_LIGHTNING_ROD);
|
||||
|
||||
if (battlerAbilityOnField > 0)
|
||||
if (battlerAbilityOnField > 0 && (battlerAbilityOnField - 1) != gBattlerAttacker)
|
||||
{
|
||||
targetBattler = battlerAbilityOnField - 1;
|
||||
RecordAbilityBattle(targetBattler, gBattleMons[targetBattler].ability);
|
||||
|
|
@ -7483,7 +7483,7 @@ u32 GetBattleMoveTarget(u16 move, u8 setTarget)
|
|||
else
|
||||
battlerAbilityOnField = IsAbilityOnOpposingSide(targetBattler, ABILITY_STORM_DRAIN);
|
||||
|
||||
if (battlerAbilityOnField > 0)
|
||||
if (battlerAbilityOnField > 0 && (battlerAbilityOnField - 1) != gBattlerAttacker)
|
||||
{
|
||||
targetBattler = battlerAbilityOnField - 1;
|
||||
RecordAbilityBattle(targetBattler, gBattleMons[targetBattler].ability);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user