[11547] Fixed spell 24604 targets.

Fix based at DENNO's idea.
This commit is contained in:
VladimirMangos 2011-05-27 02:42:30 +04:00
parent 325e610b2a
commit 21a1240811
2 changed files with 15 additions and 3 deletions

View file

@ -2012,11 +2012,17 @@ void Spell::SetTargetMap(SpellEffectIndex effIndex, uint32 targetMode, UnitList&
break;
}
case TARGET_ALL_PARTY_AROUND_CASTER:
case TARGET_ALL_PARTY_AROUND_CASTER_2:
case TARGET_ALL_PARTY:
{
switch(m_spellInfo->Id)
{
case 24604: // Furious Howl
{
// from 3.1.0 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
{
@ -2032,6 +2038,12 @@ void Spell::SetTargetMap(SpellEffectIndex effIndex, uint32 targetMode, UnitList&
}
break;
}
case TARGET_ALL_PARTY_AROUND_CASTER_2:
case TARGET_ALL_PARTY:
{
FillRaidOrPartyTargets(targetUnitMap, m_caster, m_caster, radius, false, true, true);
break;
}
case TARGET_ALL_RAID_AROUND_CASTER:
{
if(m_spellInfo->Id == 57669) // Replenishment (special target selection)

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "11546"
#define REVISION_NR "11547"
#endif // __REVISION_NR_H__