From 3f65790f36cbe472109a4285b45ea4e45d38da38 Mon Sep 17 00:00:00 2001 From: NetSky Date: Thu, 31 Dec 2009 19:15:38 +0300 Subject: [PATCH] [9091] Add max targets limit for spell 34861 and ranks. Signed-off-by: VladimirMangos Also implement glyph 42396 work for referenced spells. --- src/game/Spell.cpp | 10 ++++++++++ src/game/SpellEffects.cpp | 2 +- src/shared/revision_nr.h | 2 +- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp index 9cf13c615..08b84e03c 100644 --- a/src/game/Spell.cpp +++ b/src/game/Spell.cpp @@ -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 diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index 4a28ebf47..1daecb2b2 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -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()) diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 47d35f969..e52fed864 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "9090" + #define REVISION_NR "9091" #endif // __REVISION_NR_H__ -- 2.11.4.GIT