Skip to content

Commit

Permalink
[mr168] corrects to mr162
Browse files Browse the repository at this point in the history
  • Loading branch information
rsa committed Jun 8, 2011
1 parent b4c8f93 commit 4daa8d6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
11 changes: 8 additions & 3 deletions src/game/Unit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7779,8 +7779,13 @@ bool Unit::IsImmuneToSpell(SpellEntry const* spellInfo)
AuraList const& immuneAuraApply = GetAurasByType(SPELL_AURA_MECHANIC_IMMUNITY_MASK);
for(AuraList::const_iterator iter = immuneAuraApply.begin(); iter != immuneAuraApply.end(); ++iter)
{
if ((*iter)->GetId() == 46924 && mechanic == MECHANIC_DISARM)
continue;
if ((*iter)->GetId() == 46924)
{
if (mechanic == MECHANIC_DISARM)
continue;
else if (mechanic & IMMUNE_TO_MOVEMENT_IMPAIRMENT_AND_LOSS_CONTROL_MASK)
return true;
}

if ((*iter)->GetModifier()->m_miscvalue & (1 << (mechanic-1)))
return true;
Expand Down Expand Up @@ -7814,7 +7819,7 @@ bool Unit::IsImmuneToSpellEffect(SpellEntry const* spellInfo, SpellEffectIndex i
{
if (mechanic == MECHANIC_DISARM)
continue;
else if (spellInfo->EffectMechanic[index] & IMMUNE_TO_MOVEMENT_IMPAIRMENT_AND_LOSS_CONTROL_MASK ||
else if (mechanic & IMMUNE_TO_MOVEMENT_IMPAIRMENT_AND_LOSS_CONTROL_MASK ||
spellInfo->Mechanic & IMMUNE_TO_MOVEMENT_IMPAIRMENT_AND_LOSS_CONTROL_MASK)
return true;
}
Expand Down
2 changes: 1 addition & 1 deletion src/shared/revision_R2.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#ifndef __REVISION_R2_H__
#define __REVISION_R2_H__
#define REVISION_R2 "167"
#define REVISION_R2 "168"
#endif // __REVISION_R2_H__

0 comments on commit 4daa8d6

Please sign in to comment.