So I have this script that removes all the conditions I've added in a table. It works, except it wont remove exhaust conditions. For instance, if I cast a spell, then use the script, the spell is still on cooldown. Here are all the conditions i'm removing:
Code:
local removeConditions = {
CONDITION_POISON,
CONDITION_FIRE,
CONDITION_ENERGY,
CONDITION_BLEEDING,
CONDITION_PARALYZE,
CONDITION_DRUNK,
CONDITION_EXHAUST_WEAPON,
CONDITION_EXHAUST,
CONDITION_EXHAUSTED,
CONDITION_DROWN,
CONDITION_FREEZING,
CONDITION_DAZZLED,
CONDITION_CURSED,
CONDITION_EXHAUST_COMBAT,
CONDITION_EXHAUST_HEAL,
CONDITION_SPELLCOOLDOWN,
CONDITION_SPELLGROUPCOOLDOWN,
}
for i = 1, #removeConditions do
if(getCreatureCondition(target, removeConditions[i]) == true) then
doRemoveCondition(target, removeConditions[i])
end
end