diff options
Diffstat (limited to 'src')
| -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 011c4dff324..39954b0107d 100644 --- a/src/game/SpellAuras.cpp +++ b/src/game/SpellAuras.cpp @@ -5680,6 +5680,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) { @@ -5687,6 +5688,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: |
