[9091] Add max targets limit for spell 34861 and ranks.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>

Also implement glyph 42396 work for referenced spells.
This commit is contained in:
NetSky 2009-12-31 19:15:38 +03:00 committed by VladimirMangos
parent e5dfeea31e
commit 2087aa2876
3 changed files with 12 additions and 2 deletions

View file

@ -1332,6 +1332,16 @@ void Spell::SetTargetMap(uint32 effIndex, uint32 targetMode, UnitList& targetUni
}
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:
{
if (m_spellInfo->SpellFamilyFlags2 & 0x00000100)// Starfall