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,7 +756,9 @@ public class PKListener implements Listener {
if (e.getCause() == DamageCause.ENTITY_ATTACK) { if (e.getCause() == DamageCause.ENTITY_ATTACK) {
if (GeneralMethods.getBoundAbility(sourceplayer) != null && GeneralMethods.getBoundAbility(sourceplayer).equalsIgnoreCase("Paralyze") && e.getDamage() == 1) { if (GeneralMethods.getBoundAbility(sourceplayer) != null && GeneralMethods.getBoundAbility(sourceplayer).equalsIgnoreCase("Paralyze") && e.getDamage() == 1) {
if (ChiPassive.willChiBlock(sourceplayer, targetplayer)) { if (ChiPassive.willChiBlock(sourceplayer, targetplayer)) {
new Paralyze(sourceplayer, targetplayer); if (CoreAbility.getAbilitiesFromPlayer(sourceplayer).isEmpty()) {
new Paralyze(sourceplayer, targetplayer);
}
} }
} }
} }