Fixed CanTeleport
Also took the chance to correct the syntax inside its switch case.
This commit is contained in:
parent
c04f7d5e5b
commit
a1f921c33d
1 changed files with 2 additions and 2 deletions
|
@ -7772,10 +7772,10 @@ static bool32 CanTeleport(u8 battlerId)
|
|||
case B_SIDE_OPPONENT:
|
||||
if (gBattleTypeFlags & BATTLE_TYPE_DOUBLE)
|
||||
return FALSE;
|
||||
break;
|
||||
case B_SIDE_PLAYER:
|
||||
if (count <= 2 && gBattleTypeFlags & BATTLE_TYPE_DOUBLE)
|
||||
if (count == 1 || (count <= 2 && gBattleTypeFlags & BATTLE_TYPE_DOUBLE))
|
||||
return FALSE;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue