mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-16 08:46:09 +00:00
feat(gameobject): allow gameobjects to loot money + align table with TC (#1368)
This commit is contained in:
@@ -9011,6 +9011,8 @@ void Player::SendLoot(uint64 guid, LootType loot_type)
|
||||
if (groupRules && !go->loot.empty())
|
||||
group->UpdateLooterGuid(go);
|
||||
}
|
||||
if (GameObjectTemplateAddon const* addon = go->GetTemplateAddon())
|
||||
loot->generateMoneyLoot(addon->mingold, addon->maxgold);
|
||||
|
||||
if (loot_type == LOOT_FISHING)
|
||||
go->getFishLoot(loot, this);
|
||||
|
||||
Reference in New Issue
Block a user