mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2025-11-29 17:38:24 +08:00
fix(Scripts/HoS): Clean up faction update hacks (#23720)
This commit is contained in:
@@ -355,7 +355,6 @@ public:
|
|||||||
SetDespawnAtEnd(false);
|
SetDespawnAtEnd(false);
|
||||||
ResetEvent();
|
ResetEvent();
|
||||||
|
|
||||||
me->SetFaction(FACTION_FRIENDLY);
|
|
||||||
me->SetReactState(REACT_PASSIVE);
|
me->SetReactState(REACT_PASSIVE);
|
||||||
me->ReplaceAllNpcFlags(UNIT_NPC_FLAG_GOSSIP | UNIT_NPC_FLAG_QUESTGIVER);
|
me->ReplaceAllNpcFlags(UNIT_NPC_FLAG_GOSSIP | UNIT_NPC_FLAG_QUESTGIVER);
|
||||||
|
|
||||||
@@ -387,21 +386,12 @@ public:
|
|||||||
case ACTION_START_ESCORT_EVENT:
|
case ACTION_START_ESCORT_EVENT:
|
||||||
Start(false, ObjectGuid::Empty, 0, true, false);
|
Start(false, ObjectGuid::Empty, 0, true, false);
|
||||||
Talk(SAY_BRANN_ESCORT_START);
|
Talk(SAY_BRANN_ESCORT_START);
|
||||||
me->SetFaction(FACTION_ESCORTEE_N_NEUTRAL_PASSIVE);
|
|
||||||
me->SetReactState(REACT_AGGRESSIVE);
|
me->SetReactState(REACT_AGGRESSIVE);
|
||||||
me->SetRegeneratingHealth(true);
|
me->SetRegeneratingHealth(true);
|
||||||
break;
|
break;
|
||||||
case ACTION_START_TRIBUNAL:
|
case ACTION_START_TRIBUNAL:
|
||||||
{
|
{
|
||||||
me->SetReactState(REACT_PASSIVE);
|
me->SetReactState(REACT_PASSIVE);
|
||||||
Map::PlayerList const& PlayerList = me->GetMap()->GetPlayers();
|
|
||||||
if (!PlayerList.IsEmpty())
|
|
||||||
for (Map::PlayerList::const_iterator i = PlayerList.begin(); i != PlayerList.end(); ++i)
|
|
||||||
{
|
|
||||||
me->SetFaction(i->GetSource()->GetFaction());
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
SetEscortPaused(false);
|
SetEscortPaused(false);
|
||||||
InitializeEvent();
|
InitializeEvent();
|
||||||
me->ReplaceAllNpcFlags(UNIT_NPC_FLAG_NONE);
|
me->ReplaceAllNpcFlags(UNIT_NPC_FLAG_NONE);
|
||||||
@@ -415,7 +405,6 @@ public:
|
|||||||
break;
|
break;
|
||||||
case ACTION_GO_TO_SJONNIR:
|
case ACTION_GO_TO_SJONNIR:
|
||||||
Talk(SAY_BRANN_ENTRANCE_MEET);
|
Talk(SAY_BRANN_ENTRANCE_MEET);
|
||||||
me->SetFaction(FACTION_FRIENDLY);
|
|
||||||
me->SetReactState(REACT_PASSIVE);
|
me->SetReactState(REACT_PASSIVE);
|
||||||
me->SetRegeneratingHealth(true);
|
me->SetRegeneratingHealth(true);
|
||||||
SetEscortPaused(false);
|
SetEscortPaused(false);
|
||||||
@@ -426,7 +415,6 @@ public:
|
|||||||
me->SendMovementFlagUpdate();
|
me->SendMovementFlagUpdate();
|
||||||
break;
|
break;
|
||||||
case ACTION_START_SJONNIR_FIGHT:
|
case ACTION_START_SJONNIR_FIGHT:
|
||||||
me->SetFaction(FACTION_FRIENDLY);
|
|
||||||
SetEscortPaused(false);
|
SetEscortPaused(false);
|
||||||
break;
|
break;
|
||||||
case ACTION_SJONNIR_DEAD:
|
case ACTION_SJONNIR_DEAD:
|
||||||
|
|||||||
Reference in New Issue
Block a user