mirror of
https://github.com/azerothcore/mod-ale
synced 2025-11-29 15:38:17 +08:00
Eluna Closes:
#70, #69, #83, http://emudevs.com/showthread.php/3438-Custom-Items-and-On-Item-Use-Events Fixes Object::~Object crash log from #71
This commit is contained in:
@@ -1962,7 +1962,7 @@ namespace LuaPlayer
|
||||
if (!item)
|
||||
{
|
||||
uint32 itemId = Eluna::CHECKVAL<uint32>(L, 2);
|
||||
player->DestroyItemCount(itemId, itemCount, false);
|
||||
player->DestroyItemCount(itemId, itemCount, true);
|
||||
}
|
||||
else
|
||||
player->DestroyItemCount(item, itemCount, true);
|
||||
|
||||
Reference in New Issue
Block a user