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.
88 lines
2.3 KiB
Plaintext
88 lines
2.3 KiB
Plaintext
//::///////////////////////////////////////////////
|
|
//:: Cloud of the Achaierai: On Enter
|
|
//:: sp_cloud_achaiA.nss
|
|
//::
|
|
//:://////////////////////////////////////////////
|
|
/*
|
|
|
|
*/
|
|
//:://////////////////////////////////////////////
|
|
//:: Created By: Tenjac
|
|
//:: Created On: 3/24/06
|
|
//:://////////////////////////////////////////////
|
|
|
|
|
|
#include "prc_inc_spells"
|
|
#include "prc_add_spell_dc"
|
|
|
|
void main()
|
|
{
|
|
PRCSetSchool(SPELL_SCHOOL_CONJURATION);
|
|
|
|
object oTarget = GetEnteringObject();
|
|
object oPC = GetAreaOfEffectCreator();
|
|
int nMetaMagic = PRCGetMetaMagicFeat();
|
|
effect eDark = EffectDarkness();
|
|
effect eDur = EffectVisualEffect(VFX_DUR_CESSATE_NEGATIVE);
|
|
effect eLink = EffectLinkEffects(eDark, eDur);
|
|
effect eConf = PRCEffectConfused();
|
|
effect eLinkConf = EffectLinkEffects(eLink, eConf);
|
|
int nCasterLvl = PRCGetCasterLevel(oPC);
|
|
float fDuration = (nCasterLvl * 600.0f);
|
|
int nDam = d6(2);
|
|
int nDC = PRCGetSaveDC(oTarget, oPC);
|
|
nDam += SpellDamagePerDice(oPC, 2);
|
|
//Enter Metamagic conditions
|
|
if ((nMetaMagic & METAMAGIC_EXTEND))
|
|
{
|
|
fDuration = fDuration *2; //Duration is +100%
|
|
}
|
|
|
|
int iShadow = GetLevelByClass(CLASS_TYPE_SHADOWLORD, oTarget);
|
|
|
|
if (iShadow)
|
|
{
|
|
eLink = ShadowlordEffects(iShadow, eLink);
|
|
eLink = TagEffect(eLink, "SHADOWSIGHT+BLUR");
|
|
eLink = ShadowlordEffects(iShadow, eLink);
|
|
eLinkConf = TagEffect(eLinkConf, "SHADOWSIGHT+BLUR");
|
|
}
|
|
|
|
// * July 2003: If has darkness then do not put it on it again
|
|
// Primogenitor: Yes, what about overlapping darkness effects by different casters?
|
|
//if (PRCGetHasEffect(EFFECT_TYPE_DARKNESS, oTarget) == TRUE)
|
|
//{
|
|
// return;
|
|
//}
|
|
|
|
//if valid and not caster
|
|
if(GetIsObjectValid(oTarget) && oTarget != oPC)
|
|
{
|
|
//Spell resistance
|
|
if(!PRCDoResistSpell(oPC, oTarget, nCasterLvl + SPGetPenetr()))
|
|
{
|
|
//Save
|
|
if(!PRCMySavingThrow(SAVING_THROW_FORT, oTarget, nDC, SAVING_THROW_TYPE_SPELL))
|
|
{
|
|
SPApplyEffectToObject(DURATION_TYPE_TEMPORARY, eLinkConf, oTarget, fDuration);
|
|
}
|
|
else
|
|
{
|
|
if(!GetHasMettle(oTarget, SAVING_THROW_FORT))
|
|
{
|
|
SPApplyEffectToObject(DURATION_TYPE_TEMPORARY, eLink, oTarget, fDuration);
|
|
}
|
|
}
|
|
|
|
//Damage
|
|
effect eDam = PRCEffectDamage(oTarget, nDam, DAMAGE_TYPE_MAGICAL);
|
|
SPApplyEffectToObject(DURATION_TYPE_INSTANT, eDam, oTarget);
|
|
}
|
|
}
|
|
|
|
PRCSetSchool();
|
|
}
|
|
|
|
|
|
|