PWE_PRC8/_module/nss/ls_kehaarspell.nss
Jaysyn904 ee1dc35889 Initial Commit
Initial Commit
2025-04-03 10:29:41 -04:00

20 lines
435 B
Plaintext

//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);
}