mirror of
https://github.com/mangosfour/server.git
synced 2025-12-29 07:37:05 +00:00
[c12578] Implement spells 53035, 53036 and 53037
This commit is contained in:
parent
f34e07ae9f
commit
537d6e98d9
3 changed files with 34 additions and 6 deletions
|
|
@ -8174,14 +8174,27 @@ void Aura::PeriodicDummyTick()
|
|||
target->CastSpell(target, 52443, true);
|
||||
return;
|
||||
case 53035: // Summon Anub'ar Champion Periodic (Azjol Nerub)
|
||||
target->CastSpell(target, 53014, true); // Summon Anub'ar Champion
|
||||
return;
|
||||
case 53036: // Summon Anub'ar Necromancer Periodic (Azjol Nerub)
|
||||
target->CastSpell(target, 53015, true); // Summon Anub'ar Necromancer
|
||||
return;
|
||||
case 53037: // Summon Anub'ar Crypt Fiend Periodic (Azjol Nerub)
|
||||
target->CastSpell(target, 53016, true); // Summon Anub'ar Crypt Fiend
|
||||
{
|
||||
uint32 summonSpells[3][3] =
|
||||
{
|
||||
{53090, 53014, 53064}, // Summon Anub'ar Champion
|
||||
{53092, 53015, 53066}, // Summon Anub'ar Necromancer
|
||||
{53091, 53016, 53065} // Summon Anub'ar Crypt Fiend
|
||||
};
|
||||
|
||||
// Cast different spell depending on trigger position
|
||||
// This will summon a different npc entry on each location - each of those has individual movement patern
|
||||
if (target->GetPositionZ() < 750.0f)
|
||||
target->CastSpell(target, summonSpells[spell->Id - 53035][0], true, NULL, this);
|
||||
else if (target->GetPositionX() > 500.0f)
|
||||
target->CastSpell(target, summonSpells[spell->Id - 53035][1], true, NULL, this);
|
||||
else
|
||||
target->CastSpell(target, summonSpells[spell->Id - 53035][2], true, NULL, this);
|
||||
|
||||
return;
|
||||
}
|
||||
case 53520: // Carrion Beetles
|
||||
target->CastSpell(target, 53521, true, NULL, this);
|
||||
target->CastSpell(target, 53521, true, NULL, this);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue