Updated PRC8 version number. Added SoundImpact to Damning Darkness in vfx_persistent.2da. Updated CheckPRCLimitations() to make Darkness, Deeper Darkness & Damning Darkness work better. Fixed PnP Darkness & PnP Damning Darkness. Fixed Oversized Two-Weapon Fighting. Updated TLK for Attune Gem. Fixed typo in Calm Emotions description. Updated changelog.
77 lines
2.3 KiB
Plaintext
77 lines
2.3 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);
|
||
}
|
||
}
|
||
PRCSetSchool();
|
||
} |