mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 04:37:00 +00:00
[11596] Correct some hunter spells, casted from pet.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
8189bda55f
commit
cae9e9c29f
2 changed files with 10 additions and 23 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "11595"
|
||||
#define REVISION_NR "11596"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue