Merge pull request #79 from Grimfeather/fix-playerbots-exclusion

fix playerbots exclusion
This commit is contained in:
Grimfeather
2025-05-09 00:33:26 +02:00
committed by GitHub

View File

@@ -87,7 +87,7 @@ public:
void OnPlayerAfterUpdateMaxHealth(Player* player, float& value) override
{
// TODO: This should be adjust to use an aura like damage adjustment. This is more robust to update when changing equipment, etc.
if (!sIndividualProgression->enabled || isExcludedFromProgression(player))
if (!sIndividualProgression->enabled)
{
return;
}
@@ -359,7 +359,7 @@ public:
}
void OnPlayerQueueRandomDungeon(Player* player, uint32& rDungeonId) override
{
{
// List of exceptions for seasonal event dungeons
std::set<uint32> seasonalEventDungeons = { 285, 286, 287, 288 };
if (seasonalEventDungeons.find(rDungeonId) != seasonalEventDungeons.end())
@@ -387,7 +387,7 @@ public:
{
rDungeonId = RDF_THE_BURNING_CRUSADE_HEROIC;
}
}
}
bool OnPlayerCanEquipItem(Player* player, uint8 /*slot*/, uint16& /*dest*/, Item* pItem, bool /*swap*/, bool /*not_loading*/) override
{