mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 04:37:00 +00:00
[8712] Fixed commit [8708]
* Now final damage counted also with spell bonus. Thanks Corfen for pointing this out. Signed-off-by: ApoC <apoc@nymfe.net>
This commit is contained in:
parent
64316d2af1
commit
86a6c952b8
4 changed files with 12 additions and 13 deletions
|
|
@ -8348,6 +8348,16 @@ uint32 Unit::SpellDamageBonus(Unit *pVictim, SpellEntry const *spellProto, uint3
|
|||
}
|
||||
break;
|
||||
}
|
||||
case SPELLFAMILY_WARLOCK:
|
||||
{
|
||||
// Drain Soul
|
||||
if (spellProto->SpellFamilyFlags & UI64LIT(0x0000000000004000))
|
||||
{
|
||||
if (pVictim->GetHealth() * 100 / pVictim->GetMaxHealth() <= 25)
|
||||
DoneTotalMod *= 4;
|
||||
}
|
||||
break;
|
||||
}
|
||||
case SPELLFAMILY_DEATHKNIGHT:
|
||||
{
|
||||
// Icy Touch, Howling Blast and Frost Strike
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue