mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-01 10:03:47 +00:00
fix(Scripts/BoreanTundra): Set Last Rites NPCs Active during event so it progresses without requiring player nearby (#24538)
This commit is contained in:
@@ -1472,6 +1472,11 @@ public:
|
||||
me->SetUInt32Value(UNIT_NPC_EMOTESTATE, EMOTE_STATE_READY1H);
|
||||
_events.ScheduleEvent(EVENT_THASSARIAN_SCRIPT_1, 2s);
|
||||
}
|
||||
else if (type == POINT_MOTION_TYPE && param == 0)
|
||||
{
|
||||
if (Creature* talbot = ObjectAccessor::GetCreature(*me, _talbotGUID))
|
||||
me->SetFacingToObject(talbot);
|
||||
}
|
||||
}
|
||||
|
||||
void UpdateAI(uint32 diff) override
|
||||
@@ -1804,6 +1809,7 @@ public:
|
||||
{
|
||||
if (action == 0)
|
||||
{
|
||||
me->setActive(true);
|
||||
_playerGUID = player->GetGUID();
|
||||
CloseGossipMenuFor(player);
|
||||
me->RemoveNpcFlag(UNIT_NPC_FLAG_GOSSIP);
|
||||
|
||||
Reference in New Issue
Block a user