Fixed a few TLK entries

Fixed a few TLK entries.  Added potential future spell scripts to notes.
This commit is contained in:
Jaysyn904
2024-01-12 07:35:37 -05:00
parent 70d68319ea
commit 8339c0d54f
11 changed files with 782 additions and 5 deletions

View File

@@ -0,0 +1,46 @@
//::///////////////////////////////////////////////
//:: Sihlbrane's Grove
//:: Regenerate Critical Wounds
//:: 00_S0_REGCW
//:://////////////////////////////////////////////
/*
Regenerate 4 HP per round for 10 rounds +
caster level.
*/
//:://////////////////////////////////////////////
//:: Created By: Yaballa
//:: Created On: 7/9/2003
//:://////////////////////////////////////////////
#include "pg_ss_spelltwk"
#include "x2_inc_spellhook"
//#include "x0_i0_spells"
#include "prc_inc_spells"
void main()
{
/*
Spellcast Hook Code
Added 2003-06-20 by Georg
If you want to make changes to all spells,
check x2_inc_spellhook.nss to find out more
*/
if (!X2PreSpellCastCode())
{
// If code within the PreSpellCastHook (i.e. UMD) reports FALSE, do not run this spell
return;
}
// End of Spell Cast Hook
object oTarget = PRCGetSpellTargetObject();
int nRace = MyPRCGetRacialType(oTarget);
int nMetamagic = PRCGetMetaMagicFeat();
if((nRace != RACIAL_TYPE_CONSTRUCT) || (nRace != RACIAL_TYPE_UNDEAD))
{
PRCRemoveEffectsFromSpell(oTarget, GetSpellId());
RegenerateWounds(4, oTarget, nMetamagic);
}
}