mirror of
https://github.com/mangosfour/server.git
synced 2025-12-17 16:37:00 +00:00
[10192] Small cleanups related target effectMask check.
This commit is contained in:
parent
ebe28d025b
commit
f4dde39085
2 changed files with 6 additions and 5 deletions
|
|
@ -3798,7 +3798,8 @@ void Spell::SendChannelStart(uint32 duration)
|
||||||
{
|
{
|
||||||
for(std::list<TargetInfo>::const_iterator itr = m_UniqueTargetInfo.begin(); itr != m_UniqueTargetInfo.end(); ++itr)
|
for(std::list<TargetInfo>::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);
|
target = ObjectAccessor::GetUnit(*m_caster, itr->targetGUID);
|
||||||
break;
|
break;
|
||||||
|
|
@ -3809,7 +3810,7 @@ void Spell::SendChannelStart(uint32 duration)
|
||||||
{
|
{
|
||||||
for(std::list<GOTargetInfo>::const_iterator itr = m_UniqueGOTargetInfo.begin(); itr != m_UniqueGOTargetInfo.end(); ++itr)
|
for(std::list<GOTargetInfo>::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);
|
target = m_caster->GetMap()->GetGameObject(itr->targetGUID);
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "10191"
|
#define REVISION_NR "10192"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue