Only close open UIs when choosing SSM kits

This commit is contained in:
cnr 2016-06-24 04:06:28 -05:00
parent 560abc933c
commit c40e07695c

View File

@ -22,6 +22,8 @@ import nautilus.game.arcade.events.GameStateChangeEvent;
import nautilus.game.arcade.events.PlayerGameRespawnEvent; import nautilus.game.arcade.events.PlayerGameRespawnEvent;
import nautilus.game.arcade.events.PlayerStateChangeEvent; import nautilus.game.arcade.events.PlayerStateChangeEvent;
import nautilus.game.arcade.game.GameTeam.PlayerState; import nautilus.game.arcade.game.GameTeam.PlayerState;
import nautilus.game.arcade.game.games.smash.SuperSmash;
import nautilus.game.arcade.game.games.smash.SuperSmashDominate;
import nautilus.game.arcade.kit.Kit; import nautilus.game.arcade.kit.Kit;
import nautilus.game.arcade.kit.KitAvailability; import nautilus.game.arcade.kit.KitAvailability;
import nautilus.game.arcade.kit.Perk; import nautilus.game.arcade.kit.Perk;
@ -887,7 +889,7 @@ public abstract class Game implements Listener
{ {
kit.ApplyKit(player); kit.ApplyKit(player);
} }
else else if (this instanceof SuperSmash || this instanceof SuperSmashDominate)
{ {
player.closeInventory(); player.closeInventory();
} }