/c spells_status

Started by LoveLess, October 25, 2022, 02:56:17 AM

Previous topic - Next topic

LoveLess

Just a little addition to make it neater, is to remove all of the cessate VFX that clutter up the list. As in, the visual effect that plays at the END of the duration of most spells. Since these are only used to visually display that an effect has run out, we don't need them on the log.

// if these are both true, then the effect read is only the Cesate vfx
// since this is only used for expiration visuals, we dont need it's duration on the log

effect eEffect = GetFirstEffect(oTarget);

if(GetEffectInteger(eEffect, 0) != 206 && GetEffectType(eEffect) != 74)
{
    // do xyz
}


206 is the ID of the VFX for cessate in the 2da and 74 is that the type is visual effect.