mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-27 12:22:39 +01:00
Fix Divine Storm
Fix healing part of Divine Storm, will now work as intented healing up to 3 party or raid members for a total of 25% (or 40% with Glyph) of the damage caused. Closes #285
This commit is contained in:
@@ -1125,9 +1125,13 @@ void Spell::EffectDummy(SpellEffIndex effIndex)
|
||||
return;
|
||||
m_caster->CastCustomSpell(unitTarget, 52752, &damage, NULL, NULL, true);
|
||||
return;
|
||||
case 54171: //Divine Storm
|
||||
case 54171: // Divine Storm
|
||||
{
|
||||
m_caster->CastCustomSpell(unitTarget, 54172, &damage, 0, 0, true);
|
||||
if (m_UniqueTargetInfo.size())
|
||||
{
|
||||
int32 heal = damage / m_UniqueTargetInfo.size();
|
||||
m_caster->CastCustomSpell(unitTarget, 54172, &heal, NULL, NULL, true);
|
||||
}
|
||||
return;
|
||||
}
|
||||
case 58418: // Portal to Orgrimmar
|
||||
@@ -1354,16 +1358,6 @@ void Spell::EffectDummy(SpellEffIndex effIndex)
|
||||
}
|
||||
break;
|
||||
case SPELLFAMILY_PALADIN:
|
||||
// Divine Storm
|
||||
if (m_spellInfo->SpellFamilyFlags[1] & SPELLFAMILYFLAG1_PALADIN_DIVINESTORM && effIndex == 1)
|
||||
{
|
||||
int32 dmg = CalculatePctN(m_damage, damage);
|
||||
if (!unitTarget)
|
||||
unitTarget = m_caster;
|
||||
m_caster->CastCustomSpell(unitTarget, 54171, &dmg, 0, 0, true);
|
||||
return;
|
||||
}
|
||||
|
||||
switch (m_spellInfo->Id)
|
||||
{
|
||||
case 31789: // Righteous Defense (step 1)
|
||||
|
||||
Reference in New Issue
Block a user