I am currently in the making of a Turned based ARPG game, however, I ran into an issue that I thought you guys might be able to help me with, I tried running the script, but it still attacks with spending "mana."
//without spending mana
bool enoughAttackActionPoints = attack.actionPointsCost <= (playerTeam ? bm.GetRemainingActionPoints(true) : bm.GetRemainingActionPoints(false));
bool canAttack = enoughAttackActionPoints;
//For healing
bool enoughHealingActionPoints = attack.actionPointsCost <= (playerTeam ? bm.GetRemainingActionPoints(true) : bm.GetRemainingActionPoints(false));
bool enoughMana = heal.attributeCost.Find(x => x.attributeId == "mp").cost <= ci.availableAttributes.Find(x => x.attributeId == "mp").currentValue;
bool canHeal = enoughHealingActionPoints && enoughMana;