[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

View file

@ -1546,7 +1546,7 @@ void Spell::EffectDummy(uint32 i)
break;
case SPELLFAMILY_DRUID:
// Starfall
if (m_spellInfo->SpellFamilyFlags2 & UI64LIT(0x00000100))
if (m_spellInfo->SpellFamilyFlags2 & 0x00000100)
{
//Shapeshifting into an animal form or mounting cancels the effect.
if(m_caster->GetCreatureType() == CREATURE_TYPE_BEAST || m_caster->IsMounted())

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "9090"
#define REVISION_NR "9091"
#endif // __REVISION_NR_H__