PWE_PRC8/_module/nss/ls_kehaarspell.nss

20 lines
435 B
Plaintext
Raw Permalink Normal View History

2025-04-03 10:29:41 -04:00
//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);
}