mirror of
http://prc.nwn.ee:3000/Jaysyn/PRC8.git
synced 2025-12-17 03:47:14 -05:00
Initial upload.
Adding base PRC 4.19a files to repository.
This commit is contained in:
30
trunk/newspellbook/inv_miasmiccloud.nss
Normal file
30
trunk/newspellbook/inv_miasmiccloud.nss
Normal file
@@ -0,0 +1,30 @@
|
||||
|
||||
#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));
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user