diff options
author | Kurausukun <lord.uber1@gmail.com> | 2021-03-29 18:36:18 -0400 |
---|---|---|
committer | Kurausukun <lord.uber1@gmail.com> | 2021-03-29 18:36:18 -0400 |
commit | 102582a3dff87769379acca9d50fe29f6f41d337 (patch) | |
tree | f4b2b95ab5817efe5fda675741a6dfb9c40d1275 /src/battle_util.c | |
parent | 79a8eb481f08a035d2b357b5f9c9a57cb54e99da (diff) | |
parent | c40fb9288cf02f2cba1b72c7377d6272a0eef6f2 (diff) |
Merge branch 'master' of https://github.com/pret/pokeemerald into fr_doc
Diffstat (limited to 'src/battle_util.c')
-rw-r--r-- | src/battle_util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/battle_util.c b/src/battle_util.c index 2bf06f331..6e1202bd1 100644 --- a/src/battle_util.c +++ b/src/battle_util.c @@ -3949,7 +3949,7 @@ u8 GetMoveTarget(u16 move, u8 setTarget) return targetBattler; } -static bool32 IsNotEventLegalMewOrDeoxys(u8 battlerId) +static bool32 IsMonEventLegal(u8 battlerId) { if (GetBattlerSide(battlerId) == B_SIDE_OPPONENT) return TRUE; @@ -3970,7 +3970,7 @@ u8 IsMonDisobedient(void) if (GetBattlerSide(gBattlerAttacker) == B_SIDE_OPPONENT) return 0; - if (IsNotEventLegalMewOrDeoxys(gBattlerAttacker)) // only if species is Mew or Deoxys + if (IsMonEventLegal(gBattlerAttacker)) // only false if illegal Mew or Deoxys { if (gBattleTypeFlags & BATTLE_TYPE_INGAME_PARTNER && GetBattlerPosition(gBattlerAttacker) == 2) return 0; |