diff options
Diffstat (limited to 'src/game/SpellAuras.cpp')
| -rw-r--r-- | src/game/SpellAuras.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp index bc5af583625..7dd6ae246cd 100644 --- a/src/game/SpellAuras.cpp +++ b/src/game/SpellAuras.cpp @@ -5752,6 +5752,7 @@ void Aura::PeriodicTick() int32 gain = pCaster->ModifyPower(power,gain_amount); m_target->AddThreat(pCaster, float(gain) * 0.5f, GetSpellSchoolMask(GetSpellProto()), GetSpellProto()); } + // Mark of Kaz'rogal if(GetId() == 31447 && m_target->GetPower(power) == 0) { @@ -5759,6 +5760,20 @@ void Aura::PeriodicTick() // Remove aura SetAuraDuration(0); } + + // Mark of Kazzak + if(GetId() == 32960) + { + int32 modifier = (m_target->GetPower(power) * 0.05f); + m_target->ModifyPower(power, -modifier); + + if(m_target->GetPower(power) == 0) + { + m_target->CastSpell(m_target, 32961, true, 0, this); + // Remove aura + SetAuraDuration(0); + } + } break; } case SPELL_AURA_PERIODIC_ENERGIZE: |
