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.
41 lines
1.2 KiB
Plaintext
41 lines
1.2 KiB
Plaintext
/*:://////////////////////////////////////////////
|
|
//:: Spell Name Storm of Vengance On Exit
|
|
//:: Spell FileName PHS_S_StormVenB
|
|
//:://////////////////////////////////////////////
|
|
//:: In Game Spell desctiption
|
|
//:://////////////////////////////////////////////
|
|
On exit, we must remove the miss chances and consealment applied from this
|
|
spell.
|
|
//:://////////////////////////////////////////////
|
|
//:: Created By: Jasperre
|
|
//::////////////////////////////////////////////*/
|
|
|
|
#include "PHS_INC_SPELLS"
|
|
|
|
void main()
|
|
{
|
|
// Declare major variables
|
|
object oExiter = GetExitingObject();
|
|
|
|
// Remove all miss chance and consealments from this spell.
|
|
effect eCheck = GetFirstEffect(oExiter);
|
|
while(GetIsEffectValid(eCheck))
|
|
{
|
|
// Check spell Id
|
|
if(GetEffectSpellId(eCheck) == PHS_SPELL_STORM_OF_VENGEANCE)
|
|
{
|
|
// Check effect type and remove the right ones
|
|
switch(GetEffectType(eCheck))
|
|
{
|
|
case EFFECT_TYPE_CONCEALMENT:
|
|
case EFFECT_TYPE_MISS_CHANCE:
|
|
{
|
|
RemoveEffect(oExiter, eCheck);
|
|
}
|
|
break;
|
|
}
|
|
}
|
|
eCheck = GetNextEffect(oExiter);
|
|
}
|
|
}
|