Maintained vs IsReady

bob_the_builder

Well-Known Member
Some of the scripts that ive looked at use

if ${Me.Ability[${SpellType[385]}].IsReady}

while others use

if !${Me.Maintained[${SpellType[385]}](exists)}

So my question, will IsReady cast the spell even if the buff is currently on?

For instance like a debuff (or a dot), if IsReady casts the debuff and the debuff is still on the caster as a maintained buff but the spell is ready will it re-cast it?

I just don't know which spells / debuffs / buffs / dots are maintained even when the spell is ready again. I just don't want my casters re-debuffing / dotting when they don't need to.

I guess the easiest way is to add a Me.Maintained to every if but that seems excessive.

Well if anyone knows, thanks in adv.

Bob
 

Valerian

ISX Specialist
so.

to answer your question. no. IsReady doesn't cast anything. Maintained doesn't cast anything either.

CastSpellRange has an IgnoreMaintaned argument. ;; - IgnoreMaintained: If TRUE, then the bot will cast the spell regardless of whether or not it is already being maintained (ie, DoTs)

if you check maintained in your routines, it's going to be checking again in castspellrange dependent on that argument. the reason some scripts check it in their routines is, it's faster to check for that before calling castspellrange, than to let castspellrange go through all its other logic steps before bombing out on the maintained check.
 
Top Bottom