Moved 2 spell instant(Illusion, summonMonster) to lua

No, but you can move the condition inside the function and let it be garbage collected.