fix(Core/Unit): fix quest items not dropping if they are the only thi… (#9723)

This commit is contained in:
Skjalf 2021-12-15 13:26:02 -03:00 committed by GitHub
parent 3489c18279
commit 086b20edbc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -363,7 +363,7 @@ struct Loot
loot_type = LOOT_NONE;
}
[[nodiscard]] bool empty() const { return items.empty() && gold == 0; }
[[nodiscard]] bool empty() const { return items.empty() && quest_items.empty() && gold == 0; }
[[nodiscard]] bool isLooted() const { return gold == 0 && unlootedCount == 0; }
void NotifyItemRemoved(uint8 lootIndex);