Skip to content

Commit

Permalink
Creature: Fix wrong condition
Browse files Browse the repository at this point in the history
killerwife committed Dec 27, 2024
1 parent b7c2611 commit 49d8ec9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game/Entities/Unit.cpp
Original file line number Diff line number Diff line change
@@ -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 ************************************* */

0 comments on commit 49d8ec9

Please sign in to comment.