PRC8_fork/nwn/nwnprc/trunk/spells/tsspellhook.nss

16 lines
386 B
Plaintext
Raw Permalink Normal View History

#include "prc_alterations"
#include "inc_utility"
#include "x2_inc_spellhook"
void main()
{
int nSpell = GetSpellId();
object oTarget = PRCGetSpellTargetObject();
if(!GetIsObjectValid(oTarget)
|| oTarget != OBJECT_SELF
|| Get2DACache("spells", "HostileSetting", nSpell) == "1")
{
PRCSetUserSpecificSpellScriptFinished();
return;
}
}