Removed Outsider check from Saint's maint. script

Removed Outsider check from Saint's maint. script.  Minor spell comment fixes.
This commit is contained in:
Jaysyn904
2024-08-19 13:00:24 -04:00
parent 76073f1e0e
commit 4915c49ece
5 changed files with 20 additions and 9 deletions

View File

@@ -128,8 +128,11 @@ int DoSpell(object oCaster, object oTarget, int nCasterLevel, int nEvent)
void main()
{
//:: Check the Spellhook
if (!X2PreSpellCastCode()) return;
PRCSetSchool(SPELL_SCHOOL_TRANSMUTATION);
//:: Set the Spell School
PRCSetSchool(GetSpellSchool(PRCGetSpellId()));
object oCaster = OBJECT_SELF;
object oTarget = PRCGetSpellTargetObject();
@@ -154,5 +157,6 @@ void main()
DecrementSpellCharges(oCaster);
}
}
//:: Unset the Spell school
PRCSetSchool();
}

View File

@@ -157,6 +157,12 @@ int DoSpell(object oCaster, object oTarget, int nCasterLevel, int nEvent)
void main()
{
//:: Check the Spellhook
if (!X2PreSpellCastCode()) return;
//:: Set the Spell School
PRCSetSchool(GetSpellSchool(PRCGetSpellId()));
object oCaster = OBJECT_SELF;
object oTarget = PRCGetSpellTargetObject();
@@ -165,11 +171,7 @@ void main()
int nTargets;
int nCnt = 1;
float fDist, fDelay, fDelay2, fTime;
PRCSetSchool(GetSpellSchool(PRCGetSpellId()));
if (!X2PreSpellCastCode()) return;
int nEvent = GetLocalInt(oCaster, PRC_SPELL_EVENT); //use bitwise & to extract flags
if(!nEvent) //normal cast
{
@@ -188,6 +190,7 @@ void main()
DecrementSpellCharges(oCaster);
}
}
//:: Unset the Spell school
PRCSetSchool();
}