Fix ability paralyzing

- Fixes fireblast and other abilities paralyzing the hit player on contact.
This commit is contained in:
Simplicitee 2015-08-22 18:24:41 -04:00
parent eeae6d217b
commit 44ad44021d

View file

@ -756,6 +756,7 @@ public class PKListener implements Listener {
if (e.getCause() == DamageCause.ENTITY_ATTACK) {
if (GeneralMethods.getBoundAbility(sourceplayer) != null && GeneralMethods.getBoundAbility(sourceplayer).equalsIgnoreCase("Paralyze") && e.getDamage() == 1) {
if (ChiPassive.willChiBlock(sourceplayer, targetplayer)) {
if (CoreAbility.getAbilitiesFromPlayer(sourceplayer).isEmpty()) {
new Paralyze(sourceplayer, targetplayer);
}
}
@ -764,6 +765,7 @@ public class PKListener implements Listener {
}
}
}
}
@EventHandler(priority = EventPriority.NORMAL, ignoreCancelled = true)
public void onPlayerDeath(PlayerDeathEvent event) {