Smokebomb doesnt end instantly :o
This commit is contained in:
parent
f68586cca4
commit
c4768a8a9c
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user