Scripts/RazorfenDowns: Fix Belnistrasz Incorrect Usage of GOSSIP_OPTION_QUESTGIVER (#5285)

* NPC was using GOSSIP_OPTION_QUESTGIVER as a UNIT_NPC_FLAGS when it should have been using UNIT_NPC_FLAG_QUESTGIVER.

* Behavior shouldn't change though as they both coincidentally were 2.
This commit is contained in:
HelloKitty
2021-04-19 15:12:05 -05:00
committed by GitHub
parent d044883513
commit 7297561088

View File

@@ -79,7 +79,7 @@ public:
channeling = false;
eventProgress = 0;
spawnerCount = 0;
me->SetFlag(UNIT_NPC_FLAGS, GOSSIP_OPTION_QUESTGIVER);
me->SetFlag(UNIT_NPC_FLAGS, UNIT_NPC_FLAG_QUESTGIVER);
me->SetReactState(REACT_AGGRESSIVE);
}
}
@@ -108,7 +108,7 @@ public:
{
eventInProgress = true;
Talk(SAY_QUEST_ACCEPTED);
me->RemoveFlag(UNIT_NPC_FLAGS, GOSSIP_OPTION_QUESTGIVER);
me->RemoveFlag(UNIT_NPC_FLAGS, UNIT_NPC_FLAG_QUESTGIVER);
me->setFaction(FACTION_ESCORT);
me->GetMotionMaster()->MovePath(PATH_ESCORT, false);
}