mirror of
https://github.com/mangosfour/server.git
synced 2025-12-31 04:37:04 +00:00
[12090] Implement some spells for AQ40
Dark Glare beam spells: 26137, 26009, 26136 and 26029 Server side spell: 26133
This commit is contained in:
parent
636afadf45
commit
5aef24e6f5
6 changed files with 45 additions and 10 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue