public bool isDisabled(string abilityName, LiveImplementation.FullCombatCharacter source, LiveImplementation.CombatData combatData) { if (abilityName == "Magic Missile" && source.mp == 0) { return true; } else if (combatData.hasCooldown(source.name, abilityName)) { return true; } return false; }
public bool isDisabled(string abilityName, LiveImplementation.FullCombatCharacter source, LiveImplementation.CombatData combatData) { if (abilityName == "Disarming Blow") { if(combatData.hasCooldown(source.name, "Disarming Blow")) { return true; } } else if (abilityName == "One-Two Punch") { if (combatData.hasCooldown(source.name, "One-Two Punch")) { return true; } } else if (abilityName == "Sweep") { if (combatData.hasCooldown(source.name, "Sweep")) { return true; } } else if (abilityName == "Preemptive Strike") { if (combatData.hasCooldown(source.name, "Preemptive Strike")) { return true; } } else if (abilityName == "Vicious Blow") { if (combatData.hasCooldown(source.name, "Vicious Blow")) { return true; } } else if (abilityName == "Adrenaline") { if (source.usedAbilities.Contains("Adrenaline")) { return true; } } return false; }