Core/Units: moved health and power ordering predicates from Unit header into CommonPredicates (#29584)

This commit is contained in:
Ovahlord
2024-01-16 20:18:25 +01:00
committed by GitHub
parent 39621fa41c
commit 2f6ed2c203
6 changed files with 68 additions and 60 deletions
+2 -1
View File
@@ -26,6 +26,7 @@
#include "Battleground.h"
#include "BattlePetMgr.h"
#include "CellImpl.h"
#include "CommonPredicates.h"
#include "Containers.h"
#include "CreatureAI.h"
#include "DB2Stores.h"
@@ -2991,7 +2992,7 @@ class spell_gen_replenishment : public SpellScript
if (targets.size() > maxTargets)
{
targets.sort(Trinity::PowerPctOrderPred(POWER_MANA));
targets.sort(Trinity::Predicates::PowerPctOrderPred(POWER_MANA));
targets.resize(maxTargets);
}
}