Fix light arrows being able to damage yourself
This commit is contained in:
parent
b1c3b2c937
commit
98f9a58849
@ -140,7 +140,7 @@ public class SkillLightArrows extends HeroSkill
|
||||
|
||||
for (LivingEntity entity : UtilEnt.getInRadius(lineParticle.getLastLocation(), 1.5).keySet())
|
||||
{
|
||||
if (Recharge.Instance.use(player, GetName() + entity.getUniqueId(), 500, false, false))
|
||||
if (!isTeamDamage(entity, player) && Recharge.Instance.use(player, GetName() + entity.getUniqueId(), 500, false, false))
|
||||
{
|
||||
player.playSound(player.getLocation(), Sound.SUCCESSFUL_HIT, 1, 0.8F);
|
||||
Manager.GetDamage().NewDamageEvent(entity, player, null, DamageCause.CUSTOM, damage, true, true, false, player.getName(), GetName());
|
||||
|
Loading…
Reference in New Issue
Block a user