mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
[8578] Fix targeting of priest spell 64843.
Signed-off-by: hunuza <hunuza@gmail.com>
This commit is contained in:
parent
30105b8a0d
commit
cedc62bd40
2 changed files with 15 additions and 7 deletions
|
|
@ -1693,12 +1693,20 @@ void Spell::SetTargetMap(uint32 effIndex,uint32 targetMode,UnitList& TagUnitMap)
|
|||
FillAreaTargets(TagUnitMap, m_targets.m_destX, m_targets.m_destY, radius, PUSH_SELF_CENTER, SPELL_TARGETS_HOSTILE);
|
||||
break;
|
||||
case TARGET_ALL_FRIENDLY_UNITS_AROUND_CASTER:
|
||||
// special target order
|
||||
if (m_spellInfo->Id==64904) // Hymn of Hope
|
||||
// target amount stored in parent spell dummy effect but hard for access
|
||||
FillRaidOrPartyManaPriorityTargets(TagUnitMap, m_caster, m_caster, radius, 3, true, false, false);
|
||||
else
|
||||
FillAreaTargets(TagUnitMap, m_targets.m_destX, m_targets.m_destY, radius, PUSH_SELF_CENTER, SPELL_TARGETS_FRIENDLY);
|
||||
switch (m_spellInfo->Id)
|
||||
{
|
||||
case 64844: // Divine Hymn
|
||||
// target amount stored in parent spell dummy effect but hard to access
|
||||
FillRaidOrPartyHealthPriorityTargets(TagUnitMap, m_caster, m_caster, radius, 3, true, false, false);
|
||||
break;
|
||||
case 64904: // Hymn of Hope
|
||||
// target amount stored in parent spell dummy effect but hard to access
|
||||
FillRaidOrPartyManaPriorityTargets(TagUnitMap, m_caster, m_caster, radius, 3, true, false, false);
|
||||
break;
|
||||
default:
|
||||
FillAreaTargets(TagUnitMap, m_targets.m_destX, m_targets.m_destY, radius, PUSH_SELF_CENTER, SPELL_TARGETS_FRIENDLY);
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case TARGET_ALL_FRIENDLY_UNITS_IN_AREA:
|
||||
// Wild Growth
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue