BreathSphere damage is now from player

This commit is contained in:
MistPhizzle 2014-08-24 14:40:48 -04:00
parent a55bfd0d97
commit 5474536301

View file

@ -108,7 +108,7 @@ public class BreathSphere {
if (Methods.isObstructed(player.getLocation(), entity.getLocation())) { if (Methods.isObstructed(player.getLocation(), entity.getLocation())) {
breakBreathSphere(entity); breakBreathSphere(entity);
} }
((LivingEntity) entity).damage(damage); Methods.damageEntity(player, (LivingEntity) entity, damage);
new TempPotionEffect((LivingEntity) entity, slow); new TempPotionEffect((LivingEntity) entity, slow);
new TempPotionEffect((LivingEntity) entity, nausea); new TempPotionEffect((LivingEntity) entity, nausea);
entity.setFallDistance(0); entity.setFallDistance(0);
@ -140,7 +140,7 @@ public class BreathSphere {
if (Methods.isObstructed(player.getLocation(), entity.getLocation())) { if (Methods.isObstructed(player.getLocation(), entity.getLocation())) {
breakBreathSphere(entity); breakBreathSphere(entity);
} }
((LivingEntity) entity).damage(damage); Methods.damageEntity(player, (LivingEntity) entity, damage);
new TempPotionEffect((LivingEntity) entity, slow); new TempPotionEffect((LivingEntity) entity, slow);
new TempPotionEffect((LivingEntity) entity, nausea); new TempPotionEffect((LivingEntity) entity, nausea);
entity.setFallDistance(0); entity.setFallDistance(0);