Skip to content

Commit

Permalink
Fix idol of the moon bonus damage. (#2802)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gamemechanicwow authored Oct 22, 2024
1 parent 6017bf4 commit 07af1ae
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion src/game/Objects/SpellCaster.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1369,11 +1369,24 @@ float SpellCaster::SpellDamageBonusDone(Unit const* pVictim, SpellEntry const* s
{
case 4418: // Increased Shock Damage
case 4554: // Increased Lightning Damage
case 4555: // Improved Moonfire
{
DoneTotal += i->GetModifier()->m_amount;
break;
}
case 4555: // Improved Moonfire (Idol of the moon)
{
// Idol of the moon was bugged during vanilla 1.12
// Following math is based on reported numbers from classic and an old post on allakhazam and wowhead classic
// Direct damage bonus = 17/8 % and Dot damage bonus = 17/tickcount %
// Further information and discussion can be found at vmangos PR #2802
uint32 divisor = 800;
if (damagetype == DOT)
{
divisor = 100 * spellProto->GetAuraMaxTicks();
}

DoneTotal += i->GetModifier()->m_amount * pdamage / divisor;
}
}
}
}
Expand Down

0 comments on commit 07af1ae

Please sign in to comment.