mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-26 22:02:26 +00:00
[Combat] Disarm was not dropping item to ground due to bug (#3811)
This commit is contained in:
parent
a7e9af2d27
commit
0b181d5048
@ -1997,7 +1997,7 @@ void NPC::Disarm(Client* client, int chance) {
|
|||||||
if (zone->random.Int(0, 1000) <= chance) {
|
if (zone->random.Int(0, 1000) <= chance) {
|
||||||
weapon = database.GetItem(equipment[eslot]);
|
weapon = database.GetItem(equipment[eslot]);
|
||||||
if (weapon) {
|
if (weapon) {
|
||||||
if (!weapon->Magic && weapon->NoDrop == 255) {
|
if (!weapon->Magic && weapon->NoDrop != 0) {
|
||||||
int16 charges = -1;
|
int16 charges = -1;
|
||||||
ItemList::iterator cur, end;
|
ItemList::iterator cur, end;
|
||||||
cur = itemlist.begin();
|
cur = itemlist.begin();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user