[c12584] Implement spells 68987 and 69012

This commit is contained in:
Xfurry 2013-05-31 10:31:53 +01:00 committed by Antz
parent cda8f44cad
commit e8006b50e3
4 changed files with 81 additions and 32 deletions

View file

@ -1804,6 +1804,20 @@ void Aura::TriggerSpell()
// case 65422: break;
// // Rolling Throw
// case 67546: break;
case 69012: // Explosive Barrage
{
// Summon an Exploding Orb for each player in combat with the caster
ThreatList const& threatList = target->getThreatManager().getThreatList();
for (ThreatList::const_iterator itr = threatList.begin(); itr != threatList.end(); ++itr)
{
if (Unit* expectedTarget = target->GetMap()->GetUnit((*itr)->getUnitGuid()))
{
if (expectedTarget->GetTypeId() == TYPEID_PLAYER)
target->CastSpell(expectedTarget, 69015, true);
}
}
return;
}
// // Gunship Cannon Fire
// case 70017: break;
// // Ice Tomb
@ -3116,6 +3130,19 @@ void Aura::HandleAuraDummy(bool apply, bool Real)
target->PlayDirectSound(14972, (Player*)target);
}
return;
case 68987: // Pursuit
{
Unit* caster = GetCaster();
if (!caster || target->GetTypeId() != TYPEID_PLAYER)
return;
if (apply)
caster->FixateTarget(target);
else if (target->GetObjectGuid() == caster->GetFixateTargetGuid())
caster->FixateTarget(NULL);
return;
}
case 27978:
case 40131:
if (apply)