mirror of
https://github.com/azerothcore/mod-aoe-loot
synced 2025-11-29 21:38:16 +08:00
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:
@@ -50,7 +50,7 @@ public:
|
||||
{
|
||||
bool _enable = sConfigMgr->GetOption<bool>("AOELoot.Enable", true);
|
||||
|
||||
if (player->GetGroup() || !_enable)
|
||||
if ((player->GetGroup() && (player->GetGroup()->GetLootMethod() != FREE_FOR_ALL)) || !_enable)
|
||||
return;
|
||||
|
||||
float range = 30.0f;
|
||||
|
||||
Reference in New Issue
Block a user