aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortkrokli <tkrokli@users.noreply.github.com>2016-08-24 01:07:16 +0200
committerjoschiwald <joschiwald.trinity@gmail.com>2017-02-18 15:49:05 +0100
commit16c6e0fb8040a26111a15fcdc156cf2013694d25 (patch)
tree7ee9c4591e083e620be22e65d8bd0f7e0383496f
parent5fd64171a9fd9104bb9b310dfcd1f6f5b0d816f5 (diff)
Core/Scripts: set correct unit_flags on Scarlet Mine Car (#17844)
Closes #17816 (cherry picked from commit f3dc97f263cc14ba5a17d745b552586aecb36a59) Rename 2016_08_24_08_world.sql to 2016_08_24_03_world.sql (cherry picked from commit cabf6bd98a8f6c39c4173fb3f30a50708ad20093)
-rw-r--r--sql/updates/world/master/2017_02_18_15_world_2016_08_24_03_world.sql2
-rw-r--r--src/server/scripts/EasternKingdoms/ScarletEnclave/chapter1.cpp1
2 files changed, 2 insertions, 1 deletions
diff --git a/sql/updates/world/master/2017_02_18_15_world_2016_08_24_03_world.sql b/sql/updates/world/master/2017_02_18_15_world_2016_08_24_03_world.sql
new file mode 100644
index 00000000000..68b4d9274ec
--- /dev/null
+++ b/sql/updates/world/master/2017_02_18_15_world_2016_08_24_03_world.sql
@@ -0,0 +1,2 @@
+-- Scarlet Mine Car must have UNIT_FIELD_FLAGS UNIT_FLAG_IMMUNE_TO_PC
+UPDATE `creature_template` SET `unit_flags`= `unit_flags`| 520 WHERE `entry`= 28817;
diff --git a/src/server/scripts/EasternKingdoms/ScarletEnclave/chapter1.cpp b/src/server/scripts/EasternKingdoms/ScarletEnclave/chapter1.cpp
index b8427086047..6ca82a34979 100644
--- a/src/server/scripts/EasternKingdoms/ScarletEnclave/chapter1.cpp
+++ b/src/server/scripts/EasternKingdoms/ScarletEnclave/chapter1.cpp
@@ -1022,7 +1022,6 @@ class npc_scarlet_miner_cart : public CreatureScript
{
npc_scarlet_miner_cartAI(Creature* creature) : PassiveAI(creature)
{
- me->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_IMMUNE_TO_PC);
me->SetDisplayId(me->GetCreatureTemplate()->Modelid1); // Modelid2 is a horse.
}