mirror of
https://github.com/ZhengPeiRu21/mod-individual-progression
synced 2025-11-29 23:44:51 +08:00
Merge pull request #79 from Grimfeather/fix-playerbots-exclusion
fix playerbots exclusion
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user