summaryrefslogtreecommitdiff
path: root/src/scripts/EasternKingdoms/zone_hinterlands.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/scripts/EasternKingdoms/zone_hinterlands.cpp')
-rw-r--r--src/scripts/EasternKingdoms/zone_hinterlands.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/scripts/EasternKingdoms/zone_hinterlands.cpp b/src/scripts/EasternKingdoms/zone_hinterlands.cpp
index 751acb721e..a09f7df1b5 100644
--- a/src/scripts/EasternKingdoms/zone_hinterlands.cpp
+++ b/src/scripts/EasternKingdoms/zone_hinterlands.cpp
@@ -170,6 +170,7 @@ public:
{
_IsByOutrunner = false;
spawnId = 0;
+ me->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE | UNIT_FLAG_DISABLE_MOVE);
}
void Reset()
@@ -228,6 +229,7 @@ public:
void sQuestAccept(Player* player, Quest const* quest)
{
+ me->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE | UNIT_FLAG_DISABLE_MOVE);
if (quest->GetQuestId() == QUEST_RINJI_TRAPPED)
{
if (GameObject* go = me->FindNearestGameObject(GO_RINJI_CAGE, INTERACTION_DISTANCE))