From 411cd3fdb3495b813f102cc4f4b2aba050af4957 Mon Sep 17 00:00:00 2001 From: Girip Dragos Date: Fri, 8 Apr 2016 22:53:51 +0000 Subject: [PATCH 1/4] Now Nalorakk can be attacked after his last waypoint. --- src/server/scripts/EasternKingdoms/ZulAman/boss_nalorakk.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/server/scripts/EasternKingdoms/ZulAman/boss_nalorakk.cpp b/src/server/scripts/EasternKingdoms/ZulAman/boss_nalorakk.cpp index 0407cb6cd7c..bac495137a0 100644 --- a/src/server/scripts/EasternKingdoms/ZulAman/boss_nalorakk.cpp +++ b/src/server/scripts/EasternKingdoms/ZulAman/boss_nalorakk.cpp @@ -253,6 +253,7 @@ class boss_nalorakk : public CreatureScript me->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE); me->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE); + me->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_IMMUNE_TO_PC); MoveEvent = false; } From 6364655d63c8964c1917367486f4936150ceb9b1 Mon Sep 17 00:00:00 2001 From: Girip Dragos Date: Sat, 23 Apr 2016 22:13:45 +0000 Subject: [PATCH 2/4] Typo --- src/server/scripts/EasternKingdoms/ZulAman/boss_nalorakk.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/server/scripts/EasternKingdoms/ZulAman/boss_nalorakk.cpp b/src/server/scripts/EasternKingdoms/ZulAman/boss_nalorakk.cpp index bac495137a0..e788fd2bbe5 100644 --- a/src/server/scripts/EasternKingdoms/ZulAman/boss_nalorakk.cpp +++ b/src/server/scripts/EasternKingdoms/ZulAman/boss_nalorakk.cpp @@ -148,7 +148,7 @@ class boss_nalorakk : public CreatureScript { (*me).GetMotionMaster()->MovePoint(0, NalorakkWay[7][0], NalorakkWay[7][1], NalorakkWay[7][2]); } - + me->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_IMMUNE_TO_PC); instance->SetData(DATA_NALORAKKEVENT, NOT_STARTED); Initialize(); @@ -253,7 +253,6 @@ class boss_nalorakk : public CreatureScript me->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE); me->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE); - me->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_IMMUNE_TO_PC); MoveEvent = false; } From 93bd30d9e4ad214735c0bbe5bdd8429755a05e73 Mon Sep 17 00:00:00 2001 From: Girip Dragos Date: Sat, 23 Apr 2016 22:37:08 +0000 Subject: [PATCH 3/4] Diff --- src/server/scripts/EasternKingdoms/ZulAman/boss_nalorakk.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/server/scripts/EasternKingdoms/ZulAman/boss_nalorakk.cpp b/src/server/scripts/EasternKingdoms/ZulAman/boss_nalorakk.cpp index e788fd2bbe5..8715e7fec36 100644 --- a/src/server/scripts/EasternKingdoms/ZulAman/boss_nalorakk.cpp +++ b/src/server/scripts/EasternKingdoms/ZulAman/boss_nalorakk.cpp @@ -140,6 +140,7 @@ class boss_nalorakk : public CreatureScript { me->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE); me->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE); + me->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_IMMUNE_TO_PC); inMove = false; waitTimer = 0; me->SetSpeed(MOVE_RUN, 2); @@ -253,7 +254,7 @@ class boss_nalorakk : public CreatureScript me->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE); me->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE); - + me->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_IMMUNE_TO_PC); MoveEvent = false; } break; From 219d248a00063921df3fbe14a2c52b354ff90942 Mon Sep 17 00:00:00 2001 From: Girip Dragos Date: Sat, 23 Apr 2016 22:45:54 +0000 Subject: [PATCH 4/4] Type: So adding removeflag on reset makes boss to remove that flag after last waypoint and adding the removeflag on reset makes him attackable after wipe too. --- src/server/scripts/EasternKingdoms/ZulAman/boss_nalorakk.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/server/scripts/EasternKingdoms/ZulAman/boss_nalorakk.cpp b/src/server/scripts/EasternKingdoms/ZulAman/boss_nalorakk.cpp index 8715e7fec36..c3950d324da 100644 --- a/src/server/scripts/EasternKingdoms/ZulAman/boss_nalorakk.cpp +++ b/src/server/scripts/EasternKingdoms/ZulAman/boss_nalorakk.cpp @@ -140,7 +140,6 @@ class boss_nalorakk : public CreatureScript { me->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE); me->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE); - me->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_IMMUNE_TO_PC); inMove = false; waitTimer = 0; me->SetSpeed(MOVE_RUN, 2); @@ -254,7 +253,6 @@ class boss_nalorakk : public CreatureScript me->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE); me->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE); - me->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_IMMUNE_TO_PC); MoveEvent = false; } break;