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.
44 lines
976 B
Plaintext
44 lines
976 B
Plaintext
#include "prc_inc_spells"
|
|
|
|
const int SPELL_UR_BLACKLIGHT = 2091;
|
|
|
|
void main()
|
|
{
|
|
|
|
PRCSetSchool(SPELL_SCHOOL_EVOCATION);
|
|
|
|
object oTarget = GetExitingObject();
|
|
object oCreator = GetAreaOfEffectCreator();
|
|
|
|
//Search through the valid effects on the target.
|
|
effect eAOE = GetFirstEffect(oTarget);
|
|
while (GetIsEffectValid(eAOE))
|
|
{
|
|
int nID = GetEffectSpellId(eAOE);
|
|
|
|
if( nID== SPELL_BLACKLIGHT)
|
|
{
|
|
if (GetEffectCreator(eAOE) == oCreator)
|
|
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_blacklightb >> Removing SHADOWSIGHT+BLUR");
|
|
}
|
|
eEffect = GetNextEffect(oTarget);
|
|
}
|
|
|
|
PRCSetSchool();
|
|
|
|
}
|