PRC8/nwn/trunk/newspellbook/inv_miasmiccloud.nss
Jaysyn904 5914ed2ab5 Updated Release Archive
Updated Release Archive.  Fixed Mage-killer prereqs.  Removed old LETO & ConvoCC related files.  Added organized spell scroll store.  Fixed Gloura spellbook. Various TLK fixes.  Reorganized Repo.  Removed invalid user folders. Added DocGen back in.
2023-08-22 10:00:21 -04:00

31 lines
846 B
Plaintext

#include "prc_alterations"
#include "inv_inc_invfunc"
#include "inv_invokehook"
void main()
{
if (!PreInvocationCastCode())
{
// If code within the PreSpellCastHook (i.e. UMD) reports FALSE, do not run this spell
return;
}
// End of Spell Cast Hook
//Declare major variables including Area of Effect Object
effect eAOE = EffectAreaOfEffect(INVOKE_AOE_MIASMIC_CLOUD);
location lTarget = PRCGetSpellTargetLocation();
int CasterLvl = GetInvokerLevel(OBJECT_SELF, GetInvokingClass());
int nDuration = 1;
effect eImpact = EffectVisualEffect(257);
ApplyEffectAtLocation(DURATION_TYPE_INSTANT, eImpact, lTarget);
//Create an instance of the AOE Object using the Apply Effect function
ApplyEffectAtLocation(DURATION_TYPE_TEMPORARY, eAOE, lTarget, TurnsToSeconds(nDuration));
}