[Corpses] Corpse searches for items did not search augs (#4289)

This commit is contained in:
Paul Coene 2024-04-27 02:01:08 -04:00 committed by GitHub
parent 1529c0f670
commit 37e21d7757
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -4820,6 +4820,11 @@ bool Client::HasItemOnCorpse(uint32 item_id)
if (item.item_id == item_id) {
return true;
}
if (item.aug_1 == item_id || item.aug_2 == item_id ||
item.aug_3 == item_id || item.aug_4 == item_id ||
item.aug_5 == item_id || item.aug_6 == item_id) {
return true;
}
}
return false;