Damaging Boss restores all hunger
This commit is contained in:
parent
651791ad83
commit
02ea14bcd1
@ -118,6 +118,9 @@ public class PumpkinKing extends CreatureBase<Skeleton>
|
||||
|
||||
if (event.GetDamagerPlayer(true) == null)
|
||||
event.SetCancelled("Non-Player");
|
||||
|
||||
if (event.GetDamagerPlayer(true) != null)
|
||||
event.GetDamagerPlayer(true).setFoodLevel(20);
|
||||
|
||||
event.SetKnockback(false);
|
||||
}
|
||||
@ -137,6 +140,11 @@ public class PumpkinKing extends CreatureBase<Skeleton>
|
||||
event.SetCancelled("Projectile");
|
||||
UtilPlayer.message(event.GetDamagerPlayer(true), F.main("Boss", "Projectiles cannot harm " + F.elem("Pumpkin Minions") + "!"));
|
||||
}
|
||||
else
|
||||
{
|
||||
if (event.GetDamagerPlayer(true) != null)
|
||||
event.GetDamagerPlayer(true).setFoodLevel(20);
|
||||
}
|
||||
}
|
||||
//Attacked Shield
|
||||
else if (_shields.contains(event.GetDamageeEntity()))
|
||||
@ -150,6 +158,9 @@ public class PumpkinKing extends CreatureBase<Skeleton>
|
||||
|
||||
if (event.GetDamagerPlayer(true) == null)
|
||||
return;
|
||||
|
||||
if (event.GetDamagerPlayer(true) != null)
|
||||
event.GetDamagerPlayer(true).setFoodLevel(20);
|
||||
|
||||
//Effect
|
||||
Host.Manager.GetBlood().Effects(event.GetDamageeEntity().getLocation(), 10, 0.2, null, 0f, 0f, Material.BLAZE_POWDER, (byte)0, 10, false);
|
||||
|
Loading…
Reference in New Issue
Block a user