aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBlaymoira <none@none>2009-02-12 16:24:34 +0100
committerBlaymoira <none@none>2009-02-12 16:24:34 +0100
commitdfc3d115c5d5b608b0b4a8e0bff896d674e92482 (patch)
tree22619952452239a0b8e39fa88e1a1ed5797bcb76 /src
parent4730e6e5ce5a43cff3143169a25642cb388ccb32 (diff)
*Implement spell 32960
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/SpellAuras.cpp15
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: