[11792] Implement spells 68912, 68871, 68875 and 68876

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
This commit is contained in:
Schmoozerd 2011-09-11 12:50:18 +02:00
parent 0bb3a4c84d
commit 6baf677a63
4 changed files with 31 additions and 1 deletions

View file

@ -2141,6 +2141,15 @@ void Aura::HandleAuraDummy(bool apply, bool Real)
if (target->GetTypeId() == TYPEID_PLAYER)
((Player*)target)->removeSpell(63680);
return;
case 68912: // Wailing Souls
if (Unit* caster = GetCaster())
{
caster->SetTargetGuid(target->GetObjectGuid());
// TODO - this is confusing, it seems the boss should channel this aura, and start casting the next spell
caster->CastSpell(caster, 68899, false);
}
return;
case 71342: // Big Love Rocket
Spell::SelectMountByAreaAndSkill(target, GetSpellProto(), 71344, 71345, 71346, 71347, 0);
return;
@ -7854,6 +7863,20 @@ void Aura::PeriodicDummyTick()
target->CastSpell(target, 62593, true);
return;
}
case 68875: // Wailing Souls
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;
target->SetFacingTo(newAngle);
// Should actually be SMSG_SPELL_START, too
target->CastSpell(target, 68873, true);
return;
}
// Exist more after, need add later
default:
break;