!= and == are not the same thing.

This commit is contained in:
Treeston
2019-07-21 22:25:04 +02:00
parent 81fcd2e2d5
commit 51cf1c7136

View File

@@ -332,7 +332,7 @@ bool CombatManager::UpdateOwnerCombatState() const
{
_owner->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_IN_COMBAT);
_owner->AtEnterCombat();
if (_owner->GetTypeId() == TYPEID_UNIT)
if (_owner->GetTypeId() != TYPEID_UNIT)
_owner->AtEngage(GetAnyTarget());
}
else