Smokebomb doesnt end instantly :o

This commit is contained in:
Chiss 2014-08-06 19:13:25 +10:00
parent f68586cca4
commit c4768a8a9c

View File

@ -117,22 +117,6 @@ public class PerkSmokebomb extends Perk
UtilParticle.PlayParticle(ParticleType.HUGE_EXPLOSION, player.getLocation(), 0f, 0f, 0f, 0, 1);
}
@EventHandler(priority = EventPriority.HIGH)
public void EndDamagee(CustomDamageEvent event)
{
if (event.IsCancelled())
return;
Player damagee = event.GetDamageePlayer();
if (damagee == null) return;
if (!Kit.HasKit(damagee))
return;
//End
Manager.GetCondition().EndCondition(damagee, null, GetName());
}
@EventHandler(priority = EventPriority.HIGH)
public void EndDamager(CustomDamageEvent event)
{
@ -149,15 +133,6 @@ public class PerkSmokebomb extends Perk
Manager.GetCondition().EndCondition(damager, null, GetName());
}
@EventHandler
public void EndInteract(PlayerInteractEvent event)
{
if (!Kit.HasKit(event.getPlayer()))
return;
Manager.GetCondition().EndCondition(event.getPlayer(), null, GetName());
}
@EventHandler
public void Smoke(UpdateEvent event)
{