mirror of
https://github.com/mangosfour/server.git
synced 2025-12-29 07:37:05 +00:00
[c12584] Implement spells 68987 and 69012
This commit is contained in:
parent
cda8f44cad
commit
e8006b50e3
4 changed files with 81 additions and 32 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue