[11896] Implement spell 32960

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
This commit is contained in:
Hundekuchen 2012-01-31 18:32:30 +01:00 committed by Schmoozerd
parent ac2398aeb2
commit ceeafd567c
2 changed files with 17 additions and 2 deletions

View file

@ -7430,7 +7430,7 @@ void Aura::PeriodicTick()
target->ModifyPower(power, -drain_amount);
float gain_multiplier = 0;
float gain_multiplier = 0.0f;
if (pCaster->GetMaxPower(power) > 0)
{
@ -7458,6 +7458,20 @@ void Aura::PeriodicTick()
// Some special cases
switch (GetId())
{
case 32960: // Mark of Kazzak
{
if (target->GetTypeId() == TYPEID_PLAYER && target->getPowerType() == POWER_MANA)
{
// Drain 5% of target's mana
pdamage = target->GetMaxPower(POWER_MANA) * 5 / 100;
drain_amount = target->GetPower(POWER_MANA) > pdamage ? pdamage : target->GetPower(POWER_MANA);
target->ModifyPower(POWER_MANA, -drain_amount);
SpellPeriodicAuraLogInfo pInfo(this, drain_amount, 0, 0, 0, 0.0f);
target->SendPeriodicAuraLog(&pInfo);
}
// no break here
}
case 21056: // Mark of Kazzak
case 31447: // Mark of Kaz'rogal
{
@ -7466,6 +7480,7 @@ void Aura::PeriodicTick()
{
case 21056: triggerSpell = 21058; break;
case 31447: triggerSpell = 31463; break;
case 32960: triggerSpell = 32961; break;
}
if (target->GetTypeId() == TYPEID_PLAYER && target->GetPower(power) == 0)
{

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "11895"
#define REVISION_NR "11896"
#endif // __REVISION_NR_H__