caster can be nil if the aura wasn't applied by a unit, or if the unit that applied it does not currently have a valid unit token. Just add a check to make sure caster is non-nil before proceeding with the class lookup.
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
|