public bool substractManaSpell(int n){ int dif = this.getMP() - n; if (dif >= 0) { //Debug.Log ("Substracting mana: " + n); this.setMP(dif); return true; } return false; }