[Combat] Disarm was not dropping item to ground due to bug (#3811)

This commit is contained in:
Paul Coene 2023-12-27 10:19:09 -05:00 committed by GitHub
parent a7e9af2d27
commit 0b181d5048
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1997,7 +1997,7 @@ void NPC::Disarm(Client* client, int chance) {
if (zone->random.Int(0, 1000) <= chance) {
weapon = database.GetItem(equipment[eslot]);
if (weapon) {
if (!weapon->Magic && weapon->NoDrop == 255) {
if (!weapon->Magic && weapon->NoDrop != 0) {
int16 charges = -1;
ItemList::iterator cur, end;
cur = itemlist.begin();