mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2025-02-11 11:40:40 +00:00
Fix ability paralyzing
- Fixes fireblast and other abilities paralyzing the hit player on contact.
This commit is contained in:
parent
eeae6d217b
commit
44ad44021d
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 (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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue