diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp index d2e76a9c4..379fae644 100644 --- a/src/game/Spell.cpp +++ b/src/game/Spell.cpp @@ -3794,11 +3794,12 @@ void Spell::SendChannelStart(uint32 duration) WorldObject* target = NULL; // select first not resisted target from target list for _0_ effect - if(!m_UniqueTargetInfo.empty()) + if (!m_UniqueTargetInfo.empty()) { for(std::list::const_iterator itr = m_UniqueTargetInfo.begin(); itr != m_UniqueTargetInfo.end(); ++itr) { - if( (itr->effectMask & (1 << 0)) && itr->reflectResult == SPELL_MISS_NONE && itr->targetGUID != m_caster->GetObjectGuid()) + if ((itr->effectMask & (1 << EFFECT_INDEX_0)) && itr->reflectResult == SPELL_MISS_NONE && + itr->targetGUID != m_caster->GetObjectGuid()) { target = ObjectAccessor::GetUnit(*m_caster, itr->targetGUID); break; @@ -3809,7 +3810,7 @@ void Spell::SendChannelStart(uint32 duration) { for(std::list::const_iterator itr = m_UniqueGOTargetInfo.begin(); itr != m_UniqueGOTargetInfo.end(); ++itr) { - if(itr->effectMask & (1 << 0) ) + if (itr->effectMask & (1 << EFFECT_INDEX_0)) { target = m_caster->GetMap()->GetGameObject(itr->targetGUID); break; @@ -3825,7 +3826,7 @@ void Spell::SendChannelStart(uint32 duration) m_timer = duration; - if(target) + if (target) m_caster->SetChannelObjectGUID(target->GetGUID()); m_caster->SetUInt32Value(UNIT_CHANNEL_SPELL, m_spellInfo->Id); diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index b6ae0bdcb..093ad4bcb 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 "10191" + #define REVISION_NR "10192" #endif // __REVISION_NR_H__