Fixes an issue where staff in vanish would be placed in the game after
each round.
This commit is contained in:
Sam 2016-06-16 12:10:39 +01:00
parent c3a18813ee
commit 1d3e12dfb6

View File

@ -2138,7 +2138,13 @@ public class MineStrike extends TeamGame
team.SpawnTeleport(false); team.SpawnTeleport(false);
//Revive Dead Players //Revive Dead Players
for (Player player : GetPlayers(false)) for (Player player : GetPlayers(false))
{
if (Manager.isVanished(player))
{
continue;
}
if (!IsAlive(player)) if (!IsAlive(player))
{ {
SetPlayerState(player, PlayerState.IN); SetPlayerState(player, PlayerState.IN);
@ -2156,6 +2162,7 @@ public class MineStrike extends TeamGame
if (GetKit(player) != null) if (GetKit(player) != null)
GetKit(player).ApplyKit(player); GetKit(player).ApplyKit(player);
} }
}
//Remove Scope //Remove Scope
for (Player player : GetPlayers(false)) for (Player player : GetPlayers(false))