From cae9e9c29f73825b86864eb13a02c8a31e5b4e22 Mon Sep 17 00:00:00 2001 From: "C:/Program Files (x86)/git/dev/rsa" Date: Sat, 4 Jun 2011 14:45:32 +0400 Subject: [PATCH] [11596] Correct some hunter spells, casted from pet. Signed-off-by: VladimirMangos --- src/game/Spell.cpp | 31 +++++++++---------------------- src/shared/revision_nr.h | 2 +- 2 files changed, 10 insertions(+), 23 deletions(-) diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp index 20065966d..8302d5b6a 100644 --- a/src/game/Spell.cpp +++ b/src/game/Spell.cpp @@ -2036,29 +2036,16 @@ void Spell::SetTargetMap(SpellEffectIndex effIndex, uint32 targetMode, UnitList& } case TARGET_ALL_PARTY_AROUND_CASTER: { - switch(m_spellInfo->Id) + if (m_caster->GetObjectGuid().IsPet()) { - case 24604: // Furious Howl, from 3.1.0 - case 70728: // Exploit Weakness - { - // only affect pet and owner - targetUnitMap.push_back(m_caster); - if (Unit *owner = m_caster->GetOwner()) - targetUnitMap.push_back(owner); - break; - } - case 70893: // Culling the Herd - case 53434: // Call of the Wild - { - if (Unit *owner = m_caster->GetOwner()) - targetUnitMap.push_back(owner); - break; - } - default: - { - FillRaidOrPartyTargets(targetUnitMap, m_caster, m_caster, radius, false, true, true); - break; - } + // only affect pet and owner + targetUnitMap.push_back(m_caster); + if (Unit* owner = m_caster->GetOwner()) + targetUnitMap.push_back(owner); + } + else + { + FillRaidOrPartyTargets(targetUnitMap, m_caster, m_caster, radius, false, true, true); } break; } diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 7815b359e..8cad22959 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 "11595" + #define REVISION_NR "11596" #endif // __REVISION_NR_H__