mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-25 21:15:55 +00:00
refactor(Core/Misc): acore to Acore (#6043)
This commit is contained in:
@@ -160,7 +160,7 @@ const Position PosPlatform = {2640.5f, -3360.6f, 285.26f, 0.0f};
|
||||
#define IN_LIVE_SIDE(who) (who->GetPositionY() < POS_Y_GATE)
|
||||
|
||||
// Predicate function to check that the r efzr unit is NOT on the same side as the source.
|
||||
struct NotOnSameSide : public acore::unary_function<Unit*, bool>
|
||||
struct NotOnSameSide : public Acore::unary_function<Unit*, bool>
|
||||
{
|
||||
bool m_inLiveSide;
|
||||
explicit NotOnSameSide(Unit* pSource) : m_inLiveSide(IN_LIVE_SIDE(pSource)) {}
|
||||
@@ -677,7 +677,7 @@ public:
|
||||
|
||||
void FilterTargets(std::list<WorldObject*>& targets)
|
||||
{
|
||||
targets.remove_if(acore::UnitAuraCheck(false, SPELL_SHADOW_MARK));
|
||||
targets.remove_if(Acore::UnitAuraCheck(false, SPELL_SHADOW_MARK));
|
||||
}
|
||||
|
||||
void Register() override
|
||||
|
||||
@@ -1196,8 +1196,8 @@ public:
|
||||
else if (me->GetEntry() == NPC_LIVING_POISON)
|
||||
{
|
||||
Unit* target = nullptr;
|
||||
acore::AnyUnfriendlyUnitInObjectRangeCheck u_check(me, me, 0.5f);
|
||||
acore::UnitLastSearcher<acore::AnyUnfriendlyUnitInObjectRangeCheck> searcher(me, target, u_check);
|
||||
Acore::AnyUnfriendlyUnitInObjectRangeCheck u_check(me, me, 0.5f);
|
||||
Acore::UnitLastSearcher<Acore::AnyUnfriendlyUnitInObjectRangeCheck> searcher(me, target, u_check);
|
||||
me->VisitNearbyObject(1.5f, searcher);
|
||||
if (target)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user