From cd3d815df659cfcf2582ff8ee1aff70bef026c36 Mon Sep 17 00:00:00 2001 From: VladimirMangos Date: Wed, 2 Feb 2011 19:56:47 +0300 Subject: [PATCH] [11101] Skip casting time for casts triggered by parent aura/spell. Possible not need another (old) checks except this. --- src/game/Spell.cpp | 4 +++- src/shared/revision_nr.h | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp index 12845dace..ccd7c35ad 100644 --- a/src/game/Spell.cpp +++ b/src/game/Spell.cpp @@ -6557,7 +6557,9 @@ bool Spell::IsNeedSendToClient() const bool Spell::IsTriggeredSpellWithRedundentData() const { - return m_IsTriggeredSpell && (m_spellInfo->manaCost || m_spellInfo->ManaCostPercentage); + return m_triggeredByAuraSpell || m_triggeredBySpellInfo || + // possible not need after above check? + m_IsTriggeredSpell && (m_spellInfo->manaCost || m_spellInfo->ManaCostPercentage); } bool Spell::HaveTargetsForEffect(SpellEffectIndex effect) const diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 98f12f5af..84c752182 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 "11100" + #define REVISION_NR "11101" #endif // __REVISION_NR_H__