[12090] Implement some spells for AQ40

Dark Glare beam spells: 26137, 26009, 26136 and 26029
Server side spell: 26133
This commit is contained in:
Xfurry 2012-08-13 20:24:01 +02:00 committed by Antz
parent 636afadf45
commit 5aef24e6f5
6 changed files with 45 additions and 10 deletions

View file

@ -46,6 +46,7 @@
#include "Vehicle.h"
#include "CellImpl.h"
#include "Language.h"
#include "MapManager.h"
#define NULL_AURA_SLOT 0xFF
@ -1264,10 +1265,23 @@ void Aura::TriggerSpell()
}
// // Pain Spike
// case 25572: break;
// // Rotate 360
// case 26009: break;
// // Rotate -360
// case 26136: break;
case 26009: // Rotate 360
case 26136: // Rotate -360
{
float newAngle = target->GetOrientation();
if (auraId == 26009)
newAngle += M_PI_F/40;
else
newAngle -= M_PI_F/40;
MapManager::NormalizeOrientation(newAngle);
target->SetFacingTo(newAngle);
target->CastSpell(target, 26029, true);
return;
}
// // Consume
// case 26196: break;
// // Berserk
@ -8094,9 +8108,13 @@ void Aura::PeriodicDummyTick()
case 68876: // Wailing Souls
{
// Sweep around
float newAngle = target->GetOrientation() + (spell->Id == 68875 ? 0.09f : 2 * M_PI_F - 0.09f);
if (newAngle > 2 * M_PI_F)
newAngle -= 2 * M_PI_F;
float newAngle = target->GetOrientation();
if (spell->Id == 68875)
newAngle += 0.09f;
else
newAngle -= 0.09f;
MapManager::NormalizeOrientation(newAngle);
target->SetFacingTo(newAngle);