Skip to content

Commit

Permalink
[12775] Fix area aura type raid check.
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyberium committed Nov 11, 2014
1 parent 215b4b9 commit 7dd00af
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/game/SpellAuras.cpp
Expand Up @@ -802,7 +802,7 @@ void AreaAura::Update(uint32 diff)
target->RemoveSingleAuraFromSpellAuraHolder(GetId(), GetEffIndex(), GetCasterGuid());
}
}
else if (m_areaAuraType == AREA_AURA_RAID) // TODO: fix me!
else if (m_areaAuraType == AREA_AURA_RAID) // Check if on same raid group
{
// not check group if target == owner or target == pet
if (caster->GetCharmerOrOwnerGuid() != target->GetObjectGuid() && caster->GetObjectGuid() != target->GetCharmerOrOwnerGuid())
Expand All @@ -813,7 +813,7 @@ void AreaAura::Update(uint32 diff)
if (pGroup)
{
Player* checkTarget = target->GetCharmerOrOwnerPlayerOrPlayerItself();
if (!checkTarget)
if (!checkTarget || !checkTarget->GetGroup() || checkTarget->GetGroup()->GetId() != pGroup->GetId())
target->RemoveSingleAuraFromSpellAuraHolder(GetId(), GetEffIndex(), GetCasterGuid());
}
else
Expand Down
2 changes: 1 addition & 1 deletion src/shared/revision_nr.h
@@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "12774"
#define REVISION_NR "12775"
#endif // __REVISION_NR_H__

0 comments on commit 7dd00af

Please sign in to comment.