mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 10:37:02 +00:00
[9058] Implement spell 7057
This commit is contained in:
parent
d990644151
commit
0fec3c06d8
2 changed files with 12 additions and 1 deletions
|
|
@ -2231,6 +2231,12 @@ void Aura::HandleAuraDummy(bool apply, bool Real)
|
||||||
if (Unit* caster = GetCaster())
|
if (Unit* caster = GetCaster())
|
||||||
m_target->AddThreat(caster, 10.0f, false, GetSpellSchoolMask(GetSpellProto()), GetSpellProto());
|
m_target->AddThreat(caster, 10.0f, false, GetSpellSchoolMask(GetSpellProto()), GetSpellProto());
|
||||||
return;
|
return;
|
||||||
|
case 7057: // Haunting Spirits
|
||||||
|
// expected to tick with 30 sec period (tick part see in Aura::PeriodicTick)
|
||||||
|
m_isPeriodic = true;
|
||||||
|
m_modifier.periodictime = 30*IN_MILISECONDS;
|
||||||
|
m_periodicTimer = m_modifier.periodictime;
|
||||||
|
return;
|
||||||
case 13139: // net-o-matic
|
case 13139: // net-o-matic
|
||||||
// root to self part of (root_target->charge->root_self sequence
|
// root to self part of (root_target->charge->root_self sequence
|
||||||
if (Unit* caster = GetCaster())
|
if (Unit* caster = GetCaster())
|
||||||
|
|
@ -7004,6 +7010,7 @@ void Aura::PeriodicTick()
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
// Here tick dummy auras
|
// Here tick dummy auras
|
||||||
|
case SPELL_AURA_DUMMY: // some spells have dummy aura
|
||||||
case SPELL_AURA_PERIODIC_DUMMY:
|
case SPELL_AURA_PERIODIC_DUMMY:
|
||||||
{
|
{
|
||||||
PeriodicDummyTick();
|
PeriodicDummyTick();
|
||||||
|
|
@ -7089,6 +7096,10 @@ void Aura::PeriodicDummyTick()
|
||||||
// 7053 Forsaken Skill: Shadow
|
// 7053 Forsaken Skill: Shadow
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
case 7057: // Haunting Spirits
|
||||||
|
if (roll_chance_i(33))
|
||||||
|
m_target->CastSpell(m_target,m_modifier.m_amount,true,NULL,this);
|
||||||
|
return;
|
||||||
// // Panda
|
// // Panda
|
||||||
// case 19230: break;
|
// case 19230: break;
|
||||||
// // Gossip NPC Periodic - Talk
|
// // Gossip NPC Periodic - Talk
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "9057"
|
#define REVISION_NR "9058"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue