mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
[11895] Implement spell 31447
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
This commit is contained in:
parent
9dbd54ea19
commit
ac2398aeb2
2 changed files with 11 additions and 2 deletions
|
|
@ -7459,12 +7459,21 @@ void Aura::PeriodicTick()
|
||||||
switch (GetId())
|
switch (GetId())
|
||||||
{
|
{
|
||||||
case 21056: // Mark of Kazzak
|
case 21056: // Mark of Kazzak
|
||||||
|
case 31447: // Mark of Kaz'rogal
|
||||||
|
{
|
||||||
|
uint32 triggerSpell = 0;
|
||||||
|
switch (GetId())
|
||||||
|
{
|
||||||
|
case 21056: triggerSpell = 21058; break;
|
||||||
|
case 31447: triggerSpell = 31463; break;
|
||||||
|
}
|
||||||
if (target->GetTypeId() == TYPEID_PLAYER && target->GetPower(power) == 0)
|
if (target->GetTypeId() == TYPEID_PLAYER && target->GetPower(power) == 0)
|
||||||
{
|
{
|
||||||
target->CastSpell(target, 21058, true, NULL, this);
|
target->CastSpell(target, triggerSpell, true, NULL, this);
|
||||||
target->RemoveAurasDueToSpell(GetId());
|
target->RemoveAurasDueToSpell(GetId());
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "11894"
|
#define REVISION_NR "11895"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue