Get the type of metamagic used on the last spell.
Returns an integer corresponding to the METAMAGIC_* constant describing which metamagic was used on the last spell cast. This value should remain the same until another spell has been cast. The function will return a value of -1 if the caster is not a valid object.
This is called from an object who cast a spell. Epic-level Automatic feats do not show up with this (As this can only return 1 value).
It works fine after another spell is cast if used in an Area of Effects scripts, saving the correct value (eg; Empower).
author: GoLeM, editor: Jasperre