mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-23 05:36:23 +00:00
refactor(Core/Misc): rename some variables that can be confusing (#10592)
This commit is contained in:
@@ -895,15 +895,15 @@ public:
|
||||
{
|
||||
if (Unit* target = GetTarget())
|
||||
if (target->GetDisplayId() != 11686)
|
||||
if (Creature* me = target->ToCreature())
|
||||
if (Player* p = me->SelectNearestPlayer(2.75f))
|
||||
if (me->GetExactDist2d(p) <= 2.75f)
|
||||
if (Creature* creature = target->ToCreature())
|
||||
if (Player* player = creature->SelectNearestPlayer(2.75f))
|
||||
if (creature->GetExactDist2d(player) <= 2.75f)
|
||||
{
|
||||
me->AI()->DoAction(1); // despawning = true;
|
||||
me->GetMotionMaster()->MoveIdle();
|
||||
me->CastSpell((Unit*)nullptr, me->GetEntry() == NPC_CONCENTRATED_LIGHT ? SPELL_UNLEASHED_LIGHT : SPELL_UNLEASHED_DARK, false);
|
||||
me->SetDisplayId(11686);
|
||||
me->DespawnOrUnsummon(1500);
|
||||
creature->AI()->DoAction(1); // despawning = true;
|
||||
creature->GetMotionMaster()->MoveIdle();
|
||||
creature->CastSpell((Unit*)nullptr, creature->GetEntry() == NPC_CONCENTRATED_LIGHT ? SPELL_UNLEASHED_LIGHT : SPELL_UNLEASHED_DARK, false);
|
||||
creature->SetDisplayId(11686);
|
||||
creature->DespawnOrUnsummon(1500);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user