feat. Allow area loot if loot is free (#20)

* feat. Allow area loot if loot is free

* Add parentheses over expressions
This commit is contained in:
Walter Pagani
2024-01-30 23:02:34 -03:00
committed by GitHub
parent 0b954e8309
commit 42cc6e602e

View File

@@ -50,7 +50,7 @@ public:
{ {
bool _enable = sConfigMgr->GetOption<bool>("AOELoot.Enable", true); bool _enable = sConfigMgr->GetOption<bool>("AOELoot.Enable", true);
if (player->GetGroup() || !_enable) if ((player->GetGroup() && (player->GetGroup()->GetLootMethod() != FREE_FOR_ALL)) || !_enable)
return; return;
float range = 30.0f; float range = 30.0f;