• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Lua [TFS 1.0] Remove exhaust conditions dosent work?

Tufte

Member
Joined
Nov 19, 2007
Messages
652
Reaction score
24
Location
Norway
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
 
Back
Top