[11894] Implement spell 21056

This commit is contained in:
Schmoozerd 2012-01-31 17:43:07 +01:00
parent c9ead52e68
commit 9dbd54ea19
2 changed files with 23 additions and 11 deletions

View file

@ -7454,6 +7454,18 @@ void Aura::PeriodicTick()
target->AddThreat(pCaster, float(gain) * 0.5f, pInfo.critical, GetSpellSchoolMask(spellProto), spellProto); target->AddThreat(pCaster, float(gain) * 0.5f, pInfo.critical, GetSpellSchoolMask(spellProto), spellProto);
} }
// Some special cases
switch (GetId())
{
case 21056: // Mark of Kazzak
if (target->GetTypeId() == TYPEID_PLAYER && target->GetPower(power) == 0)
{
target->CastSpell(target, 21058, true, NULL, this);
target->RemoveAurasDueToSpell(GetId());
}
break;
}
break; break;
} }
case SPELL_AURA_PERIODIC_ENERGIZE: case SPELL_AURA_PERIODIC_ENERGIZE:

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__ #ifndef __REVISION_NR_H__
#define __REVISION_NR_H__ #define __REVISION_NR_H__
#define REVISION_NR "11893" #define REVISION_NR "11894"
#endif // __REVISION_NR_H__ #endif // __REVISION_NR_H__