mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2025-02-12 03:59:06 +00:00
Fix element toggling
- Fixes element toggling not toggling passives with it
This commit is contained in:
parent
733d797f1c
commit
2c0461fb8b
1 changed files with 4 additions and 1 deletions
|
@ -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())
|
||||
|
|
Loading…
Reference in a new issue