Scripts/HoO: Brann will now shut up about the locked Vault of Lights door when a player tries to trigger his intro texts in front of the locked door while the event has already been started/completed

This commit is contained in:
Ovahlord
2021-02-23 22:35:20 +01:00
parent 2fb9e0da8c
commit e4ff74dcd5

View File

@@ -273,6 +273,8 @@ struct npc_hoo_brann_bronzebeard : public CreatureAI
me->RemoveFlag(UNIT_NPC_FLAGS, UNIT_NPC_FLAG_GOSSIP | UNIT_NPC_FLAG_QUESTGIVER);
me->setActive(true);
_allowAreaTriggerText = false;
_events.CancelEvent(EVENT_ENABLE_AREA_TRIGGER_TALK);
_events.ScheduleEvent(EVENT_INTRO_1, 2s);
return true;
@@ -283,7 +285,7 @@ struct npc_hoo_brann_bronzebeard : public CreatureAI
switch (action)
{
case ACTION_INTRO_AREA_TRIGGER:
if (_allowAreaTriggerText)
if (_allowAreaTriggerText && _instance->GetData(DATA_VAULT_OF_LIGHTS) == NOT_STARTED)
{
_allowAreaTriggerText = false;
Talk(SAY_DOOR_INTRO);