Paralyze will no longer work with other abilities

This commit is contained in:
MistPhizzle 2014-07-11 13:33:07 -04:00
parent 653aeb8718
commit 78b6ee6278

View file

@ -860,7 +860,7 @@ public class PKListener implements Listener {
return; return;
} }
if (e.getCause() == DamageCause.ENTITY_ATTACK) { if (e.getCause() == DamageCause.ENTITY_ATTACK) {
if (Methods.getBoundAbility(sourceplayer) != null && Methods.getBoundAbility(sourceplayer).equalsIgnoreCase("Paralyze")) { if (Methods.getBoundAbility(sourceplayer) != null && Methods.getBoundAbility(sourceplayer).equalsIgnoreCase("Paralyze") && e.getDamage() == 1) {
if (ChiPassive.willChiBlock(targetplayer)) { if (ChiPassive.willChiBlock(targetplayer)) {
new Paralyze(sourceplayer, targetplayer); new Paralyze(sourceplayer, targetplayer);
} }