mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 04:37:00 +00:00
[9240] Implement spell 24834.
This commit is contained in:
parent
40c1e6e772
commit
75381e31f8
2 changed files with 19 additions and 3 deletions
|
|
@ -1572,8 +1572,24 @@ void Aura::TriggerSpell()
|
||||||
// case 24780: break;
|
// case 24780: break;
|
||||||
// // Cannon Prep
|
// // Cannon Prep
|
||||||
// case 24832: break;
|
// case 24832: break;
|
||||||
// // Shadow Bolt Whirl
|
// Shadow Bolt Whirl
|
||||||
// case 24834: break;
|
case 24834:
|
||||||
|
{
|
||||||
|
uint32 spellForTick[8] = { 24820, 24821, 24822, 24823, 24835, 24836, 24837, 24838 };
|
||||||
|
uint32 tick = GetAuraTicks();
|
||||||
|
if(tick < 8)
|
||||||
|
{
|
||||||
|
trigger_spell_id = spellForTick[tick];
|
||||||
|
|
||||||
|
// casted in left/right (but triggered spell have wide forward cone)
|
||||||
|
float forward = m_target->GetOrientation();
|
||||||
|
float angle = m_target->GetOrientation() + ( tick % 2 == 0 ? M_PI / 2 : - M_PI / 2);
|
||||||
|
m_target->SetOrientation(angle);
|
||||||
|
target->CastSpell(target, trigger_spell_id, true, NULL, this, casterGUID);
|
||||||
|
m_target->SetOrientation(forward);
|
||||||
|
}
|
||||||
|
return;
|
||||||
|
}
|
||||||
// // Stink Trap
|
// // Stink Trap
|
||||||
// case 24918: break;
|
// case 24918: break;
|
||||||
// // Mark of Nature
|
// // Mark of Nature
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "9239"
|
#define REVISION_NR "9240"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue