/* This is the spellhoook that runs while the caster is in timestop. If the target is not a location or self, abort the spell If the spell is hostile, abort the spell */ #include "x2_inc_switches" #include "prc_inc_spells" void main() { if((PRCGetSpellTargetObject() != OBJECT_INVALID && PRCGetSpellTargetObject() != GetLastSpellCaster()) || Get2DAString("spells", "HostileSetting", PRCGetSpellId()) == "1") { SetModuleOverrideSpellScriptFinished(); return; } }