From 118d79bd779e6b58ebd6e913cd9289d8b520a373 Mon Sep 17 00:00:00 2001 From: VladimirMangos Date: Tue, 12 Jan 2010 05:40:28 +0300 Subject: [PATCH] [9154] Implement spell 20375 targets amount depndence from triggering source spell. --- src/game/Spell.cpp | 12 ++++++++++++ src/shared/revision_nr.h | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp index ddd16547d..b082a09b2 100644 --- a/src/game/Spell.cpp +++ b/src/game/Spell.cpp @@ -1351,6 +1351,18 @@ void Spell::SetTargetMap(uint32 effIndex, uint32 targetMode, UnitList& targetUni } break; } + case SPELLFAMILY_PALADIN: + if (m_spellInfo->Id == 20424) // Seal of Command (2 more target for single targeted spell) + { + // overwrite EffectChainTarget for non single target spell + if (Spell* currSpell = m_caster->GetCurrentSpell(CURRENT_GENERIC_SPELL)) + if (currSpell->m_spellInfo->MaxAffectedTargets > 0 || + currSpell->m_spellInfo->EffectChainTarget[0] > 0 || + currSpell->m_spellInfo->EffectChainTarget[1] > 0 || + currSpell->m_spellInfo->EffectChainTarget[2] > 0) + EffectChainTarget = 0; // no chain targets + } + break; case SPELLFAMILY_DRUID: { if (m_spellInfo->SpellFamilyFlags2 & 0x00000100)// Starfall diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index c8ca9da8d..a60f4e1f6 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 "9153" + #define REVISION_NR "9154" #endif // __REVISION_NR_H__ -- 2.11.4.GIT