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.
34 lines
1.1 KiB
Plaintext
34 lines
1.1 KiB
Plaintext
//:://////////////////////////////////////////////
|
|
//:: FileName: "ss_ep_transvital"
|
|
/* Purpose: Transcendent Vitality - the target permanently gains 5 CON,
|
|
immunity to poisons and disease, and regeneration.
|
|
*/
|
|
//:://////////////////////////////////////////////
|
|
//:: Created By: Boneshank
|
|
//:: Last Updated On: March 13, 2004
|
|
//:://////////////////////////////////////////////
|
|
#include "prc_alterations"
|
|
#include "inc_epicspells"
|
|
|
|
void main()
|
|
{
|
|
DeleteLocalInt(OBJECT_SELF, "X2_L_LAST_SPELLSCHOOL_VAR");
|
|
SetLocalInt(OBJECT_SELF, "X2_L_LAST_SPELLSCHOOL_VAR", SPELL_SCHOOL_TRANSMUTATION);
|
|
|
|
if (!X2PreSpellCastCode())
|
|
{
|
|
DeleteLocalInt(OBJECT_SELF, "X2_L_LAST_SPELLSCHOOL_VAR");
|
|
return;
|
|
}
|
|
if (GetCanCastSpell(OBJECT_SELF, SPELL_EPIC_TRANVIT))
|
|
{
|
|
object oTarget = PRCGetSpellTargetObject();
|
|
|
|
object oSkin = GetPCSkin(oTarget);
|
|
SetPersistantLocalInt(oTarget, "EpicSpell_TransVital", TRUE);
|
|
ExecuteScript("trans_vital", oTarget);
|
|
}
|
|
DeleteLocalInt(OBJECT_SELF, "X2_L_LAST_SPELLSCHOOL_VAR");
|
|
}
|
|
|