take a look at implementation in Spell::EffectScriptEffect and remove it there