mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-12-26 11:44:17 +01:00
Rename IsNotEventLegalMewOrDeoxys
This commit is contained in:
parent
7a5c6d4d86
commit
5cb8ec4247
@ -3949,7 +3949,7 @@ u8 GetMoveTarget(u16 move, u8 setTarget)
|
|||||||
return targetBattler;
|
return targetBattler;
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool32 IsNotEventLegalMewOrDeoxys(u8 battlerId)
|
static bool32 IsMonEventLegal(u8 battlerId)
|
||||||
{
|
{
|
||||||
if (GetBattlerSide(battlerId) == B_SIDE_OPPONENT)
|
if (GetBattlerSide(battlerId) == B_SIDE_OPPONENT)
|
||||||
return TRUE;
|
return TRUE;
|
||||||
@ -3970,7 +3970,7 @@ u8 IsMonDisobedient(void)
|
|||||||
if (GetBattlerSide(gBattlerAttacker) == B_SIDE_OPPONENT)
|
if (GetBattlerSide(gBattlerAttacker) == B_SIDE_OPPONENT)
|
||||||
return 0;
|
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)
|
if (gBattleTypeFlags & BATTLE_TYPE_INGAME_PARTNER && GetBattlerPosition(gBattlerAttacker) == 2)
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user