mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 13:37:00 +00:00
[9962] Modify way 4x damage bonus claculated for spell 1120 and ranks.
* Now apply 4x bonus dependent from target health in time spell cast, not from current health in tick. * 4x bonus applied to own spell damage value, not to total taken damage.
This commit is contained in:
parent
2c396da82b
commit
c7ea2be1d1
3 changed files with 11 additions and 9 deletions
|
|
@ -4888,6 +4888,16 @@ void Aura::HandlePeriodicDamage(bool apply, bool Real)
|
|||
}
|
||||
break;
|
||||
}
|
||||
case SPELLFAMILY_WARLOCK:
|
||||
{
|
||||
// Drain Soul
|
||||
if (m_spellProto->SpellFamilyFlags & UI64LIT(0x0000000000004000))
|
||||
{
|
||||
if (m_target->GetHealth() * 100 / m_target->GetMaxHealth() <= 25)
|
||||
m_modifier.m_amount *= 4;
|
||||
}
|
||||
break;
|
||||
}
|
||||
case SPELLFAMILY_DRUID:
|
||||
{
|
||||
// Rake
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue