[10915] Use HasFlag function for check flags instead raw access.

This commit is contained in:
VladimirMangos 2010-12-24 05:36:21 +03:00
parent f56e13966f
commit d1b0e5b40f
3 changed files with 3 additions and 3 deletions

View file

@ -7456,7 +7456,7 @@ void Aura::PeriodicDummyTick()
if (spell->Id == 52179)
{
// Periodic need for remove visual on stun/fear/silence lost
if (!(target->GetUInt32Value(UNIT_FIELD_FLAGS)&(UNIT_FLAG_STUNNED|UNIT_FLAG_FLEEING|UNIT_FLAG_SILENCED)))
if (!target->HasFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_STUNNED | UNIT_FLAG_FLEEING | UNIT_FLAG_SILENCED))
target->RemoveAurasDueToSpell(52179);
return;
}