mirror of
https://github.com/mangosfour/server.git
synced 2025-12-21 10:37:06 +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;
|
||||
// // 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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue