Merge branch 'Myst_EVO'

This commit is contained in:
Mini-Chiss 2015-08-28 20:50:27 -07:00
commit d68f1fa547

View File

@ -229,6 +229,22 @@ public class Evolution extends SoloGame
} }
} }
@EventHandler(priority = EventPriority.LOWEST)
public void setKit(GameStateChangeEvent event)
{
if (event.GetState() != GameState.Prepare)
return;
for (Player player : GetPlayers(true))
{
if (GetKit(player) != null)
continue;
this.SetKit(player, GetKits()[0], false);
}
}
@EventHandler(priority = EventPriority.MONITOR) @EventHandler(priority = EventPriority.MONITOR)
public void showKit(GameStateChangeEvent event) public void showKit(GameStateChangeEvent event)
{ {