From 49d8ec972fedd847b86b7d4f866f28ddf4f829aa Mon Sep 17 00:00:00 2001 From: killerwife Date: Fri, 27 Dec 2024 16:00:17 +0100 Subject: [PATCH] Creature: Fix wrong condition --- src/game/Entities/Unit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/Entities/Unit.cpp b/src/game/Entities/Unit.cpp index 8e3a703b42..8285963350 100644 --- a/src/game/Entities/Unit.cpp +++ b/src/game/Entities/Unit.cpp @@ -1478,7 +1478,7 @@ void Unit::JustKilledCreature(Unit* killer, Creature* victim, Player* responsibl /* ******************************** Prepare loot if can ************************************ */ // only lootable if it has loot or can drop gold, must be done before threat list is cleared - if (!isPet || !victim->GetSettings().HasFlag(CreatureStaticFlags::DESPAWN_INSTANTLY)) + if (!isPet && !victim->GetSettings().HasFlag(CreatureStaticFlags::DESPAWN_INSTANTLY)) victim->PrepareBodyLootState(killer); /* ********************************* Set Death finally ************************************* */