mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-18 03:15:41 +00:00
refactor(GameObjectAI): Change self-accessor to "me" (#9041)
This commit is contained in:
@@ -2105,16 +2105,16 @@ public:
|
||||
|
||||
void Reset() override
|
||||
{
|
||||
go->SetLootState(GO_READY);
|
||||
me->SetLootState(GO_READY);
|
||||
|
||||
_scheduler.Schedule(Seconds(1), [this](TaskContext /*context*/)
|
||||
{
|
||||
go->UseDoorOrButton();
|
||||
go->CastSpell(nullptr, SPELL_MOLE_MACHINE_EMERGE);
|
||||
me->UseDoorOrButton();
|
||||
me->CastSpell(nullptr, SPELL_MOLE_MACHINE_EMERGE);
|
||||
})
|
||||
.Schedule(Seconds(4), [this](TaskContext /*context*/)
|
||||
{
|
||||
if (GameObject* trap = go->GetLinkedTrap())
|
||||
if (GameObject* trap = me->GetLinkedTrap())
|
||||
{
|
||||
trap->UseDoorOrButton();
|
||||
trap->SetLootState(GO_READY);
|
||||
|
||||
Reference in New Issue
Block a user