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.
49 lines
1.5 KiB
Plaintext
49 lines
1.5 KiB
Plaintext
/*
|
|
Warlock epic feat
|
|
Verminlord dominating vermin
|
|
|
|
Fixed By: Jaysyn
|
|
Date: 2026-05-27 19:43:38
|
|
*/
|
|
#include "prc_inc_racial"
|
|
#include "inv_inc_invfunc"
|
|
#include "prc_inc_spells"
|
|
|
|
void main()
|
|
{
|
|
object oTarget = PRCGetSpellTargetObject();
|
|
int nRacialType = MyPRCGetRacialType(oTarget);
|
|
|
|
if(nRacialType != RACIAL_TYPE_VERMIN)
|
|
return;
|
|
|
|
int nCasterLevel = GetInvokerLevel(OBJECT_SELF, CLASS_TYPE_WARLOCK);
|
|
int nDuration = nCasterLevel;
|
|
|
|
// Spell resistance check
|
|
if(PRCDoResistSpell(OBJECT_SELF, oTarget, nCasterLevel))
|
|
return;
|
|
|
|
// Will save (but not as mind-affecting for vermin)
|
|
if(PRCMySavingThrow(SAVING_THROW_WILL, oTarget, PRCGetSaveDC(oTarget, OBJECT_SELF), SAVING_THROW_TYPE_NONE))
|
|
return;
|
|
|
|
// Apply supernatural domination effect that bypasses mind immunity
|
|
effect eDom = SupernaturalEffect(EffectCutsceneDominated());
|
|
effect eVis = EffectVisualEffect(VFX_DUR_MIND_AFFECTING_DOMINATED);
|
|
effect eLink = EffectLinkEffects(eDom, eVis);
|
|
|
|
SPApplyEffectToObject(DURATION_TYPE_TEMPORARY, eLink, oTarget, TurnsToSeconds(nDuration), TRUE, -1, nCasterLevel);
|
|
}
|
|
|
|
/* void main()
|
|
{
|
|
object oTarget = PRCGetSpellTargetObject();
|
|
int nRacialType = MyPRCGetRacialType(oTarget);
|
|
|
|
if(nRacialType != RACIAL_TYPE_VERMIN)
|
|
return;
|
|
|
|
DoRacialSLA(SPELL_DOMINATE_MONSTER, GetInvokerLevel(OBJECT_SELF, CLASS_TYPE_WARLOCK));
|
|
}
|
|
*/ |