mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2024-09-11 04:39:32 +00:00
Add Bloodbending / Paralyze check to canBend
This commit is contained in:
parent
85c9d79996
commit
9cf8544ae0
|
@ -75,6 +75,7 @@ import com.projectkorra.ProjectKorra.airbending.AirSpout;
|
|||
import com.projectkorra.ProjectKorra.airbending.AirSuction;
|
||||
import com.projectkorra.ProjectKorra.airbending.AirSwipe;
|
||||
import com.projectkorra.ProjectKorra.airbending.Tornado;
|
||||
import com.projectkorra.ProjectKorra.chiblocking.Paralyze;
|
||||
import com.projectkorra.ProjectKorra.chiblocking.RapidPunch;
|
||||
import com.projectkorra.ProjectKorra.earthbending.Catapult;
|
||||
import com.projectkorra.ProjectKorra.earthbending.CompactColumn;
|
||||
|
@ -258,6 +259,7 @@ public class Methods {
|
|||
if (isFireAbility(ability) && !isBender(player, Element.Fire)) return false;
|
||||
if (isChiAbility(ability) && !isBender(player, Element.Chi)) return false;
|
||||
if (isRegionProtectedFromBuild(p, ability, p.getLocation())) return false;
|
||||
if (Paralyze.isParalyzed(p) || Bloodbending.isBloodbended(p)) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue