mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2025-02-11 11:40:40 +00:00
Merge pull request #219 from Simplicitee/patch-1
Fix ability paralyzing
This commit is contained in:
commit
e937d697b8
1 changed files with 3 additions and 1 deletions
|
@ -756,7 +756,9 @@ 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)) {
|
||||
new Paralyze(sourceplayer, targetplayer);
|
||||
if (CoreAbility.getAbilitiesFromPlayer(sourceplayer).isEmpty()) {
|
||||
new Paralyze(sourceplayer, targetplayer);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue