From 42cc6e602e1d1d7c5ec7377d80296cf9414c3260 Mon Sep 17 00:00:00 2001 From: Walter Pagani Date: Tue, 30 Jan 2024 23:02:34 -0300 Subject: [PATCH] feat. Allow area loot if loot is free (#20) * feat. Allow area loot if loot is free * Add parentheses over expressions --- 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 ffe9fef..80da840 100644 --- a/src/AoeLoot_SC.cpp +++ b/src/AoeLoot_SC.cpp @@ -50,7 +50,7 @@ public: { bool _enable = sConfigMgr->GetOption("AOELoot.Enable", true); - if (player->GetGroup() || !_enable) + if ((player->GetGroup() && (player->GetGroup()->GetLootMethod() != FREE_FOR_ALL)) || !_enable) return; float range = 30.0f;