Skip to content

Commit

Permalink
Merge pull request #16651 from ariel-/movespeedfix
Browse files Browse the repository at this point in the history
Core/Unit: Fix typo
  • Loading branch information
joschiwald committed Feb 21, 2016
2 parents 2345e84 + 405917e commit 31b1da4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/game/Entities/Unit/Unit.cpp
Expand Up @@ -12341,7 +12341,7 @@ void Unit::UpdateSpeed(UnitMoveType mtype, bool forced)
if (Creature* creature = ToCreature())
{
uint32 immuneMask = creature->GetCreatureTemplate()->MechanicImmuneMask;
if (immuneMask & (1 << MECHANIC_SNARE) || immuneMask & (1 << MECHANIC_DAZE))
if (immuneMask & (1 << (MECHANIC_SNARE - 1)) || immuneMask & (1 << (MECHANIC_DAZE - 1)))
break;
}

Expand Down

0 comments on commit 31b1da4

Please sign in to comment.