mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-03-05 16:57:52 +00:00
refactor(Core): rename namespaces and macros to acore (#2454)
This commit is contained in:
@@ -166,7 +166,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)) {}
|
||||
@@ -673,7 +673,7 @@ class spell_gothik_shadow_bolt_volley : public SpellScriptLoader
|
||||
|
||||
void FilterTargets(std::list<WorldObject*>& targets)
|
||||
{
|
||||
targets.remove_if(Trinity::UnitAuraCheck(false, SPELL_SHADOW_MARK));
|
||||
targets.remove_if(acore::UnitAuraCheck(false, SPELL_SHADOW_MARK));
|
||||
}
|
||||
|
||||
void Register() override
|
||||
|
||||
@@ -892,8 +892,8 @@ public:
|
||||
else if (me->GetEntry() == NPC_LIVING_POISON)
|
||||
{
|
||||
Unit* target = nullptr;
|
||||
Trinity::AnyUnfriendlyUnitInObjectRangeCheck u_check(me, me, 0.5f);
|
||||
Trinity::UnitLastSearcher<Trinity::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)
|
||||
me->CastSpell(me, SPELL_FROGGER_EXPLODE, true);
|
||||
|
||||
Reference in New Issue
Block a user