[11596] Correct some hunter spells, casted from pet.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
C:/Program Files (x86)/git/dev/rsa 2011-06-04 14:45:32 +04:00 committed by VladimirMangos
parent 8189bda55f
commit cae9e9c29f
2 changed files with 10 additions and 23 deletions

View file

@ -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;
}

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "11595"
#define REVISION_NR "11596"
#endif // __REVISION_NR_H__