2024-06-20 15:47:42 -04:00

36 lines
904 B
Plaintext

#include "heartward_inc"
void main()
{
//Declare major variables
int nSpell = GetSpellId();
object oTarget = GetSpellTargetObject();
string Elemental;
//Determine Invok Elemental subradial type
if(nSpell == SPELL_ELE_CONF_FIRE)
{
Elemental = "NW_FIREHUGE";
}
else if (nSpell == SPELL_ELE_CONF_WATER)
{
Elemental = "NW_WATERHUGE";
}
else if (nSpell == SPELL_ELE_CONF_EARTH)
{
Elemental = "NW_EARTHHUGE";
}
else if (nSpell == SPELL_ELE_CONF_AIR)
{
Elemental = "NW_AIRHUGE";
}
int Duration=GetLevelByClass(CLASS_TYPE_CLERIC,oTarget)+GetLevelByClass(CLASS_TYPE_DRUID,oTarget)+GetLevelByClass(CLASS_TYPE_STORMLORD,oTarget);
effect Summon=EffectSummonCreature(Elemental,VFX_NONE,0.0,1);
ApplyEffectAtLocation(DURATION_TYPE_TEMPORARY,Summon,GetLocation(oTarget),RoundsToSeconds(Duration));
}