Files
PRC8/nwn/nwnprc/trunk/spells/sp_utterdarkB.nss
Jaysyn904 c437270cd1 2026/05/28 Afternoon update
Updated damagtypes.2da for CEP3 reserved rows.
Added and setup Darkvision icon.
Added and setup Ultravision icon.
Added spell icon for Thicket of Blades.
Fixed Blacklight, Cloud of the Archeai, Darkness, Deeper Darkness, Damning Darkness, Utterdark, Grasping Shadows, Dawn and Dusk and Child of Shadow and Light for Telflammar Shadowlord's Shadow Blur and Shadow Sight abilities.
Updated Blacklight's TLK entry.
Created a constant for Shadow Discorporation.
Fixed Shadow Time never ending on the targets.
Updated prc_inc_combat to use monk iterative progression if warranted.
Updated PRCGetIsRealSpellKnownByClass() to handle Sublime Chord better. (@Lightbeard)
Added class heartbeat script for Shadowlord to handle Shadow Blur and Shadow Sight.
Added ShadowlordEffects() to prc_inc_spells.
Added constants for new damagetypes.
Completely rewrote Verminlord's Vermin Domination.
Fixed duration for Empathic Feedback.
Fixed Morality Undone to not break characters over a server reset.
2026-05-28 16:27:19 -04:00

69 lines
1.8 KiB
Plaintext

//::///////////////////////////////////////////////
//:: Name Utterdark on Exit
//:: FileName sp_utterdarkB.nss
//:://////////////////////////////////////////////
/**@file Utterdark
Conjuration (Creation) [Evil]
Level: Darkness 8, Demonic 8, Sor/Wiz 9
Components: V, S, M/DF
Casting Time: 1 hour
Range: Close (25 ft. + 5 ft./2 levels)
Area: 100-ft./level radius spread, centered on caster
Duration: 1 hour/level
Saving Throw: None
Spell Resistance: No
Utterdark spreads from the caster, creating an area
of cold, cloying magical darkness. This darkness is
similar to that created by the deeper darkness spell,
but no magical light counters or dispels it.
Furthermore, evil aligned creatures can see in this
darkness as if it were simply a dimly lighted area.
Arcane Material Component: A black stick, 6 inches
long, with humanoid blood smeared upon it.
Author: Tenjac
Created: 5/21/06
*/
//:://////////////////////////////////////////////
//:://////////////////////////////////////////////
#include "prc_inc_spells"
void main()
{
object oTarget = GetExitingObject();
object oCreator = GetAreaOfEffectCreator();
int bValid = FALSE;
effect eAOE;
PRCSetSchool(SPELL_SCHOOL_CONJURATION);
//Search through the valid effects on the target.
eAOE = GetFirstEffect(oTarget);
while (GetIsEffectValid(eAOE))
{
int nType = GetEffectType(eAOE);
int nID = GetEffectSpellId(eAOE);
if((nID== SPELL_UTTERDARK) && (GetEffectCreator(eAOE) == oCreator)
&& nType != EFFECT_TYPE_AREA_OF_EFFECT)
{
RemoveEffect(oTarget, eAOE);
}
if(GetEffectTag(eAOE) == "SHADOWSIGHT+BLUR")
{
RemoveEffect(oTarget, eAOE);
if(DEBUG) DoDebug("sp_utterdarkb >> Removing SHADOWSIGHT+BLUR");
}
//Get next effect on the target
eAOE = GetNextEffect(oTarget);
}
PRCSetSchool();
}