Wither no longer shoots in pregame lobby

This commit is contained in:
Chiss 2014-11-15 20:16:18 +11:00
parent 51bc53262d
commit 41b6296788

View File

@ -2,10 +2,12 @@ package nautilus.game.arcade.game.games.wither.kit;
import org.bukkit.Material; import org.bukkit.Material;
import org.bukkit.entity.EntityType; import org.bukkit.entity.EntityType;
import org.bukkit.entity.LivingEntity;
import org.bukkit.entity.Player; import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler; import org.bukkit.event.EventHandler;
import org.bukkit.event.EventPriority; import org.bukkit.event.EventPriority;
import org.bukkit.event.entity.EntityDamageEvent.DamageCause; import org.bukkit.event.entity.EntityDamageEvent.DamageCause;
import org.bukkit.inventory.ItemStack;
import mineplex.core.common.util.C; import mineplex.core.common.util.C;
import mineplex.core.common.util.UtilServer; import mineplex.core.common.util.UtilServer;
@ -23,7 +25,7 @@ public class KitWitherMinion extends Kit
{ {
public KitWitherMinion(ArcadeManager manager) public KitWitherMinion(ArcadeManager manager)
{ {
super(manager, "Wither Minion", KitAvailability.Free, super(manager, "Wither", KitAvailability.Free,
new String[] new String[]
{ {
@ -36,11 +38,23 @@ public class KitWitherMinion extends Kit
new PerkWitherAttack(), new PerkWitherAttack(),
new PerkWitherMinion() new PerkWitherMinion()
}, },
EntityType.WITHER, EntityType.SKELETON,
null); null);
} }
@Override
public void SpawnCustom(LivingEntity ent)
{
ent.setMaxHealth(300);
ent.setHealth(300);
DisguiseWither disguise = new DisguiseWither(ent);
disguise.SetName(C.cYellow + "Wither");
disguise.SetCustomNameVisible(true);
Manager.GetDisguise().disguise(disguise);
}
@Override @Override
public void GiveItems(Player player) public void GiveItems(Player player)
{ {