Update prc_inc_spells.nss
Added once per target, per spell check to Thrall of Grazzt's Spell Betrayal & Spellstrike.
This commit is contained in:
parent
a0b511ec5b
commit
cd65130e92
@ -793,12 +793,19 @@ int SpellStrikeDamage(object oTarget, object oCaster)
|
|||||||
int iDam = 0;
|
int iDam = 0;
|
||||||
int ThrallLevel = GetLevelByClass(CLASS_TYPE_THRALL_OF_GRAZZT_A, oCaster) + GetLevelByClass(CLASS_TYPE_THRALL_OF_GRAZZT_D, oCaster);
|
int ThrallLevel = GetLevelByClass(CLASS_TYPE_THRALL_OF_GRAZZT_A, oCaster) + GetLevelByClass(CLASS_TYPE_THRALL_OF_GRAZZT_D, oCaster);
|
||||||
|
|
||||||
|
// Combine caster and spell ID into a unique key
|
||||||
|
int nSpellId = PRCGetSpellId();
|
||||||
|
string sFlag = "SPELL_STRIKE_" + ObjectToString(oCaster) + "_" + IntToString(nSpellId);
|
||||||
|
|
||||||
if(ThrallLevel >= 6)
|
if(ThrallLevel >= 6)
|
||||||
{
|
{
|
||||||
if( GetIsAOEFlanked(oTarget, oCaster) )
|
if( GetIsAOEFlanked(oTarget, oCaster) )
|
||||||
{
|
{
|
||||||
ThrallLevel /= 4;
|
ThrallLevel /= 4;
|
||||||
iDam = d6(ThrallLevel);
|
iDam = d6(ThrallLevel);
|
||||||
|
// Mark target as affected for this spell instance by this caster
|
||||||
|
SetLocalInt(oTarget, sFlag, TRUE);
|
||||||
|
DelayCommand(2.5, DeleteLocalInt(oTarget, sFlag));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user