From b5184c8b3dfd3eb0e3ac3ef0148040c358368d91 Mon Sep 17 00:00:00 2001 From: Walter Pagani Date: Tue, 6 Feb 2024 21:50:46 -0300 Subject: [PATCH] feat (src/AoeLoot) Use a different hook (#22) --- src/AoeLoot_SC.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AoeLoot_SC.cpp b/src/AoeLoot_SC.cpp index 31f21d7..a71fa5a 100644 --- a/src/AoeLoot_SC.cpp +++ b/src/AoeLoot_SC.cpp @@ -185,7 +185,7 @@ class AoeLoot_Player : public PlayerScript OnCreatureLootAOE(player); } - void OnAfterCreatureLootMoney(Player* player) override + void OnBeforeLootMoney(Player* player, Loot* /*loot*/) override { OnCreatureLootAOE(player); }