fix(Core/Player): corrected HasUnitFlag usage (#11321)

This commit is contained in:
Bogir[rus]
2022-04-11 14:11:37 +05:00
committed by GitHub
parent 0039449e66
commit d723352207

View File

@@ -1691,8 +1691,7 @@ void Player::UpdateTriggerVisibility()
// units (values dependent on GM state)
if (!creature || (!creature->IsTrigger() &&
!creature->HasAuraType(SPELL_AURA_TRANSFORM) &&
!creature->HasFlag(UNIT_FIELD_FLAGS,
UNIT_FLAG_NOT_SELECTABLE)))
!creature->HasUnitFlag(UNIT_FLAG_NOT_SELECTABLE)))
continue;
creature->SetFieldNotifyFlag(UF_FLAG_PUBLIC);