Fixed kit bug.
This commit is contained in:
parent
12d9888a1f
commit
55a7ea0439
@ -34,6 +34,7 @@ import mineplex.minecraft.game.core.damage.CustomDamageEvent;
|
||||
import nautilus.game.arcade.ArcadeManager;
|
||||
import nautilus.game.arcade.GameType;
|
||||
import nautilus.game.arcade.events.GameStateChangeEvent;
|
||||
import nautilus.game.arcade.events.PlayerPrepareTeleportEvent;
|
||||
import nautilus.game.arcade.game.GameTeam;
|
||||
import nautilus.game.arcade.game.SoloGame;
|
||||
import nautilus.game.arcade.game.games.evolution.events.EvolutionAbilityUseEvent;
|
||||
@ -213,21 +214,30 @@ public class Evolution extends SoloGame
|
||||
return viewing;
|
||||
}
|
||||
|
||||
//Double Kit
|
||||
//Double kit
|
||||
@EventHandler(priority = EventPriority.MONITOR)
|
||||
public void storeTokens(GameStateChangeEvent event)
|
||||
public void storeTokens(PlayerPrepareTeleportEvent event)
|
||||
{
|
||||
if (event.GetState() != GameState.Prepare)
|
||||
return;
|
||||
|
||||
for (Player player : GetPlayers(true))
|
||||
{
|
||||
_tokens.put(player.getName(), new EvoToken(player, GetKit(player) == null ? _kits.get(0) : GetKit(player)));
|
||||
|
||||
upgradeKit(player, false);
|
||||
}
|
||||
_tokens.put(event.GetPlayer().getName(), new EvoToken(event.GetPlayer(), GetKit(event.GetPlayer()) == null ? _kits.get(0) : GetKit(event.GetPlayer())));
|
||||
|
||||
upgradeKit(event.GetPlayer(), false);
|
||||
}
|
||||
|
||||
// //Double Kit
|
||||
// @EventHandler(priority = EventPriority.MONITOR)
|
||||
// public void storeTokens(GameStateChangeEvent event)
|
||||
// {
|
||||
// if (event.GetState() != GameState.Prepare)
|
||||
// return;
|
||||
//
|
||||
// for (Player player : GetPlayers(true))
|
||||
// {
|
||||
// _tokens.put(player.getName(), new EvoToken(player, GetKit(player) == null ? _kits.get(0) : GetKit(player)));
|
||||
//
|
||||
// upgradeKit(player, false);
|
||||
// }
|
||||
// }
|
||||
|
||||
@EventHandler(priority = EventPriority.MONITOR)
|
||||
public void showKit(GameStateChangeEvent event)
|
||||
{
|
||||
|
@ -125,7 +125,7 @@ public class PerkFlamingSwordEVO extends Perk
|
||||
{
|
||||
//Fire
|
||||
Item fire = player.getWorld().dropItem(player.getEyeLocation(), ItemStackFactory.Instance.CreateStack(Material.BLAZE_POWDER));
|
||||
Manager.GetFire().Add(fire, player, 0.7, 0, 0.5, 1.5, "Inferno");
|
||||
Manager.GetFire().Add(fire, player, 0.7, 0, 0.5, 1, "Inferno");
|
||||
|
||||
fire.teleport(player.getEyeLocation());
|
||||
double x = 0.07 - (UtilMath.r(14)/100d);
|
||||
|
Loading…
Reference in New Issue
Block a user