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.
89 lines
2.6 KiB
Plaintext
89 lines
2.6 KiB
Plaintext
//::///////////////////////////////////////////////
|
||
//:: Name Damning Darkness
|
||
//:: FileName sp_damng_dark.nss
|
||
//:://////////////////////////////////////////////
|
||
/**@file Damning Darkness
|
||
Evocation [Darkness, Evil]
|
||
Level: Clr 4, Darkness 4, Sor/Wiz 4
|
||
Components: V, M/DF
|
||
Casting Time: 1 action
|
||
Range: Touch
|
||
Target: Object touched
|
||
Duration: 10 minutes/level (D)
|
||
Saving Throw: None
|
||
Spell Resistance: No
|
||
|
||
This spell is similar to darkness, except that those
|
||
within the area of darkness also take unholy damage.
|
||
Creatures of good alignment take 2d6 points of
|
||
damage per round in the darkness, and creatures
|
||
neither good nor evil take 1d6 points of damage. As
|
||
with the darkness spell, the area of darkness is a
|
||
20-foot radius, and the object that serves as the
|
||
spell's target can be shrouded to block the darkness
|
||
(and thus the damaging effect).
|
||
|
||
Damning darkness counters or dispels any light spell
|
||
of equal or lower level.
|
||
|
||
Arcane Material Component: A dollop of pitch with a
|
||
tiny needle hidden inside it.
|
||
|
||
Author: Tenjac
|
||
Created:
|
||
|
||
Fixed by: Jaysyn
|
||
Date: 2026-05-26 19:53:19
|
||
|
||
*/
|
||
//:://////////////////////////////////////////////
|
||
//:://////////////////////////////////////////////
|
||
#include "prc_alterations"
|
||
#include "prc_inc_spells"
|
||
|
||
void main()
|
||
{
|
||
PRCSetSchool(SPELL_SCHOOL_EVOCATION);
|
||
|
||
object oTarget = GetExitingObject();
|
||
object oPC = GetAreaOfEffectCreator();
|
||
effect eAOE;
|
||
|
||
// Clear the in-AOE marker to stop damage tracking
|
||
DeleteLocalInt(oTarget, "PRC_DamningDarkness_InAOE");
|
||
|
||
if(GetHasSpellEffect(SPELL_DAMNING_DARKNESS, oTarget))
|
||
{
|
||
//Search through the valid effects on the target.
|
||
eAOE = GetFirstEffect(oTarget);
|
||
while (GetIsEffectValid(eAOE))
|
||
{
|
||
if (GetEffectCreator(eAOE) == oPC)
|
||
{
|
||
if(GetEffectType(eAOE) == EFFECT_TYPE_DARKNESS)
|
||
{
|
||
//If the effect was created by Damning Darkness then remove it
|
||
if(GetEffectSpellId(eAOE) == SPELL_DAMNING_DARKNESS)
|
||
{
|
||
RemoveEffect(oTarget, eAOE);
|
||
}
|
||
}
|
||
}
|
||
//Get next effect on the target
|
||
eAOE = GetNextEffect(oTarget);
|
||
}
|
||
}
|
||
|
||
effect eEffect = GetFirstEffect(oTarget);
|
||
while(GetIsEffectValid(eEffect))
|
||
{
|
||
if(GetEffectTag(eEffect) == "SHADOWSIGHT+BLUR")
|
||
{
|
||
RemoveEffect(oTarget, eEffect);
|
||
if(DEBUG) DoDebug("sp_damng_darkb >> Removing SHADOWSIGHT+BLUR");
|
||
}
|
||
eEffect = GetNextEffect(oTarget);
|
||
}
|
||
|
||
PRCSetSchool();
|
||
} |