mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 17:54:48 +01:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user