Talk:HasSpell
There are no discussions on this page.
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.
Syscrusher (talk) 22:36, 30 October 2013 (EDT)