Fix element toggling

- Fixes element toggling not toggling passives with it
This commit is contained in:
Simplicitee 2015-11-07 16:36:08 -05:00
parent 733d797f1c
commit 2c0461fb8b

View file

@ -311,7 +311,8 @@ public class GeneralMethods {
return false;
if (!canBind(player, ability))
return false;
if (bPlayer.isElementToggled(GeneralMethods.getAbilityElement(ability)) == false)
return false;
if (isRegionProtectedFromBuild(p, ability, p.getLocation()))
return false;
if (Paralyze.isParalyzed(p) || Bloodbending.isBloodbended(p))
@ -338,6 +339,8 @@ public class GeneralMethods {
return false;
if (!bPlayer.hasElement(element))
return false;
if (bPlayer.isElementToggled(element) == false)
return false;
if (isRegionProtectedFromBuild(p, null, p.getLocation()))
return false;
if (bPlayer.isChiBlocked())