From 3798f549e62c7f11ded3bb572d09b08dfb0ee372 Mon Sep 17 00:00:00 2001 From: Xfurry Date: Thu, 29 Mar 2012 21:56:30 +0200 Subject: [PATCH] [11934] Implement spell 37125 periodic trigger code. Signed-off-by: Schmoozerd --- src/game/SpellAuras.cpp | 26 +++++++++++++++++++++----- src/shared/revision_nr.h | 2 +- 2 files changed, 22 insertions(+), 6 deletions(-) diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp index 06b75aa23..5d9d3a3cf 100644 --- a/src/game/SpellAuras.cpp +++ b/src/game/SpellAuras.cpp @@ -1117,24 +1117,40 @@ void Aura::TriggerSpell() } case 23184: // Mark of Frost case 25041: // Mark of Nature + case 37125: // Mark of Death { std::list targets; // spells existed in 1.x.x; 23183 - mark of frost; 25042 - mark of nature; both had radius of 100.0 yards in 1.x.x DBC // spells are used by Azuregos and the Emerald dragons in order to put a stun debuff on the players which resurrect during the encounter // in order to implement the missing spells we need to make a grid search for hostile players and check their auras; if they are marked apply debuff + // spell 37127 used for the Mark of Death, is used server side, so it needs to be implemented here - // Mark of Frost or Mark of Nature - uint32 markSpellId = auraId == 23184 ? 23182 : 25040; - // Aura of Frost or Aura of Nature - uint32 debufSpellId = auraId == 23184 ? 23186 : 25043; + uint32 markSpellId = 0; + uint32 debuffSpellId = 0; + + switch (auraId) + { + case 23184: + markSpellId = 23182; + debuffSpellId = 23186; + break; + case 25041: + markSpellId = 25040; + debuffSpellId = 25043; + break; + case 37125: + markSpellId = 37128; + debuffSpellId = 37131; + break; + } MaNGOS::AnyPlayerInObjectRangeWithAuraCheck u_check(GetTarget(), 100.0f, markSpellId); MaNGOS::PlayerListSearcher checker(targets, u_check); Cell::VisitWorldObjects(GetTarget(), checker, 100.0f); for (std::list::iterator itr = targets.begin(); itr != targets.end(); ++itr) - (*itr)->CastSpell((*itr), debufSpellId, true, NULL, NULL, casterGUID); + (*itr)->CastSpell((*itr), debuffSpellId, true, NULL, NULL, casterGUID); return; } diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index ab640d407..804fd35a2 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "11933" + #define REVISION_NR "11934" #endif // __REVISION_NR_H__