//Script by Lilac Soul, aka Carsten Hjorthoj. Goes
//Goes OnSpellCastAt of placeable. Fires the spell right
//back at the caster.

void main()
{
object oPC=GetLastSpellCaster();

if (!GetIsPC(oPC) && GetMaster(oPC) == OBJECT_INVALID) return;

if (!GetLastSpellHarmful()) return;

int lastspell=GetLastSpell();

ClearAllActions();

ActionCastSpellAtObject(lastspell, oPC, METAMAGIC_ANY, TRUE, 0, PROJECTILE_PATH_TYPE_DEFAULT, TRUE);

}