ensure zombies don't burn to death, by losing equipment
This commit is contained in:
parent
40361acc9b
commit
7558bd01b7
@ -119,7 +119,8 @@ public class Cannon extends SiegeWeapon
|
||||
return false;
|
||||
}
|
||||
|
||||
if(_clans.hasTimer(player)) {
|
||||
if(_clans.hasTimer(player))
|
||||
{
|
||||
UtilPlayer.message(player, F.main("Clans", "You cannot ride on a Cannon whilst on PvPTimer"));
|
||||
return false;
|
||||
}
|
||||
@ -329,6 +330,7 @@ public class Cannon extends SiegeWeapon
|
||||
|
||||
addEntity(weapon, "WEAPON");
|
||||
|
||||
|
||||
insert();
|
||||
}
|
||||
|
||||
|
@ -116,6 +116,12 @@ public class AttackEnemyObjective extends OrderedObjective<ClansMainTutorial>
|
||||
for (Player player : getActivePlayers())
|
||||
{
|
||||
_shooters.get(player.getName()).forEach(shooter -> {
|
||||
shooter.setHealth(shooter.getMaxHealth());
|
||||
|
||||
shooter.getEquipment().setItemInHand(new ItemStack(Material.BOW, 1));
|
||||
shooter.getEquipment().setChestplate(new ItemStack(Material.GOLD_CHESTPLATE, 1));
|
||||
shooter.getEquipment().setBoots(new ItemStack(Material.GOLD_BOOTS, 1));
|
||||
shooter.getEquipment().setHelmet(new ItemStack(Material.GOLD_HELMET, 1));
|
||||
|
||||
if (player.getLocation().distance(shooter.getLocation()) > 16)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user