Fixed bending breaking when a user toggles their bending (#710)

This commit is contained in:
Sobki 2017-01-26 12:14:12 +10:00 committed by Christopher Martin
parent 3b597cc933
commit 2de9ce3281

View file

@ -213,12 +213,12 @@ public abstract class CoreAbility implements Ability {
BendingPlayer bPlayer = abil.getBendingPlayer(); BendingPlayer bPlayer = abil.getBendingPlayer();
if (bPlayer == null || !abil.getPlayer().isOnline()) { if (bPlayer == null || !abil.getPlayer().isOnline()) {
abil.remove(); abil.remove();
return; continue;
} else if (!bPlayer.canBendPassive(abil.getElement())) { // Check for if the passive should be removed } else if (!bPlayer.canBendPassive(abil.getElement())) { // Check for if the passive should be removed
abil.remove(); abil.remove();
return; continue;
} else if (!bPlayer.canUsePassive(abil.getElement())) { // Check for if the passive should be prevented from happening, but not remove it } else if (!bPlayer.canUsePassive(abil.getElement())) { // Check for if the passive should be prevented from happening, but not remove it
return; continue;
} }
} }
abil.progress(); abil.progress();