fixes spellActionEffect  y fixes detect magic