[9240] Implement spell 24834.

This commit is contained in:
VladimirMangos 2010-01-23 13:32:48 +03:00
parent 40c1e6e772
commit 75381e31f8
2 changed files with 19 additions and 3 deletions

View file

@ -1572,8 +1572,24 @@ void Aura::TriggerSpell()
// case 24780: break;
// // Cannon Prep
// case 24832: break;
// // Shadow Bolt Whirl
// case 24834: break;
// Shadow Bolt Whirl
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
// case 24918: break;
// // Mark of Nature

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "9239"
#define REVISION_NR "9240"
#endif // __REVISION_NR_H__