mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2025-02-22 12:23:48 +01:00
Fix Teleport wild double battle
This commit is contained in:
parent
cfc1ea7db2
commit
fcc5ec1dd0
@ -1678,7 +1678,11 @@ static void Cmd_attackanimation(void)
|
||||
if (gBattleControllerExecFlags)
|
||||
return;
|
||||
|
||||
if ((gHitMarker & HITMARKER_NO_ANIMATIONS) && (gCurrentMove != MOVE_TRANSFORM && gCurrentMove != MOVE_SUBSTITUTE))
|
||||
if ((gHitMarker & HITMARKER_NO_ANIMATIONS)
|
||||
&& gCurrentMove != MOVE_TRANSFORM
|
||||
&& gCurrentMove != MOVE_SUBSTITUTE
|
||||
// In a wild double battle gotta use the teleport animation if two wild pokemon are alive.
|
||||
&& !(gCurrentMove == MOVE_TELEPORT && WILD_DOUBLE_BATTLE && GetBattlerSide(gBattlerAttacker) == B_SIDE_OPPONENT && IsBattlerAlive(BATTLE_PARTNER(gBattlerAttacker))))
|
||||
{
|
||||
BattleScriptPush(gBattlescriptCurrInstr + 1);
|
||||
gBattlescriptCurrInstr = BattleScript_Pausex20;
|
||||
|
Loading…
x
Reference in New Issue
Block a user