Fixed CanTeleport

Also took the chance to correct the syntax inside its switch case.
This commit is contained in:
LOuroboros 2022-07-04 16:15:25 -03:00
parent c04f7d5e5b
commit a1f921c33d

View file

@ -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;
}