mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2025-02-11 11:40:40 +00:00
BreathSphere damage is now from player
This commit is contained in:
parent
a55bfd0d97
commit
5474536301
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue