Talk:HasSpell
Revision as of 21:34, 30 October 2013 by imported>Syscrusher (Possible anomaly: Function may not work on creatures, at least in some cases)
I believe I may have found an anomaly for this function. On a creature (rather than an NPC), it seems in my testing to always return zero.
I can replicate this either with an Ability that is built into the creature's spell list at edit time, or with an Ability that is added to the creature from the console in game.
I verified that the same Ability added to a human NPC *is* correctly detected by HasSpell.
I haven't tested with non-Ability spells, nor with a wide variety of creatures. For me, this anomaly happens with a Spider Daedra.