mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 07:37:01 +00:00
[9102] Use FillRaidOrPartyHealthPriorityTargets for 34861 and ranks.
This commit is contained in:
parent
1ec90288fb
commit
7496a6b91b
2 changed files with 15 additions and 11 deletions
|
|
@ -1346,16 +1346,6 @@ void Spell::SetTargetMap(uint32 effIndex, uint32 targetMode, UnitList& targetUni
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case SPELLFAMILY_PRIEST:
|
|
||||||
if(m_spellInfo->SpellVisual[0] == 8253) // Circle of Healing
|
|
||||||
{
|
|
||||||
unMaxTargets = 5;
|
|
||||||
|
|
||||||
// Glyph of Circle of Healing
|
|
||||||
if(Aura const* glyph = m_caster->GetDummyAura(55675))
|
|
||||||
unMaxTargets += glyph->GetModifier()->m_amount;
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
case SPELLFAMILY_DRUID:
|
case SPELLFAMILY_DRUID:
|
||||||
{
|
{
|
||||||
if (m_spellInfo->SpellFamilyFlags2 & 0x00000100)// Starfall
|
if (m_spellInfo->SpellFamilyFlags2 & 0x00000100)// Starfall
|
||||||
|
|
@ -1747,6 +1737,20 @@ void Spell::SetTargetMap(uint32 effIndex, uint32 targetMode, UnitList& targetUni
|
||||||
if (Unit* target = m_caster->GetMap()->GetPet(((Player*)m_caster)->GetSelection()))
|
if (Unit* target = m_caster->GetMap()->GetPet(((Player*)m_caster)->GetSelection()))
|
||||||
targetUnitMap.push_back(target);
|
targetUnitMap.push_back(target);
|
||||||
}
|
}
|
||||||
|
// Circle of Healing
|
||||||
|
else if (m_spellInfo->SpellFamilyName == SPELLFAMILY_PRIEST && m_spellInfo->SpellVisual[0] == 8253)
|
||||||
|
{
|
||||||
|
Unit* target = m_targets.getUnitTarget();
|
||||||
|
if(!target)
|
||||||
|
target = m_caster;
|
||||||
|
|
||||||
|
uint32 count = 5;
|
||||||
|
// Glyph of Circle of Healing
|
||||||
|
if(Aura const* glyph = m_caster->GetDummyAura(55675))
|
||||||
|
count += glyph->GetModifier()->m_amount;
|
||||||
|
|
||||||
|
FillRaidOrPartyHealthPriorityTargets(targetUnitMap, m_caster, target, radius, count, true, false, true);
|
||||||
|
}
|
||||||
// Wild Growth
|
// Wild Growth
|
||||||
else if (m_spellInfo->SpellFamilyName == SPELLFAMILY_DRUID && m_spellInfo->SpellIconID == 2864)
|
else if (m_spellInfo->SpellFamilyName == SPELLFAMILY_DRUID && m_spellInfo->SpellIconID == 2864)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "9101"
|
#define REVISION_NR "9102"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue