mirror of
https://github.com/araxiaonline/azerothcore-wotlk-allbots.git
synced 2026-06-13 03:12:31 -04:00
NPCBots: Add missing OnBeforeLootMoney() script hook in _autoLootCreatureGold()
This commit is contained in:
@@ -39,6 +39,7 @@
|
||||
#include "PathGenerator.h"
|
||||
#include "PointMovementGenerator.h"
|
||||
#include "ScriptedGossip.h"
|
||||
#include "ScriptMgr.h"
|
||||
#include "SpellAuraEffects.h"
|
||||
#include "TemporarySummon.h"
|
||||
#include "Transport.h"
|
||||
@@ -11550,6 +11551,7 @@ void bot_ai::_autoLootCreatureGold(Creature* creature) const
|
||||
{
|
||||
Loot* loot = &creature->loot;
|
||||
|
||||
sScriptMgr->OnBeforeLootMoney(master, loot);
|
||||
loot->NotifyMoneyRemoved();
|
||||
Group const* gr = master->GetGroup();
|
||||
if (!gr)
|
||||
|
||||
Reference in New Issue
Block a user