diff options
| author | tkrokli <tkrokli@users.noreply.github.com> | 2016-08-24 01:07:16 +0200 |
|---|---|---|
| committer | ariel- <ariel-@users.noreply.github.com> | 2016-08-23 20:07:16 -0300 |
| commit | f3dc97f263cc14ba5a17d745b552586aecb36a59 (patch) | |
| tree | 2ce78a75958946d60656fc05c99358feb717d0ce | |
| parent | eda05a636e240dca9d74c284d97dc43ab09cc791 (diff) | |
Core/Scripts: set correct unit_flags on Scarlet Mine Car (#17844)
Closes #17816
| -rw-r--r-- | sql/updates/world/3.3.5/2016_08_24_08_world.sql | 2 | ||||
| -rw-r--r-- | src/server/scripts/EasternKingdoms/ScarletEnclave/chapter1.cpp | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/sql/updates/world/3.3.5/2016_08_24_08_world.sql b/sql/updates/world/3.3.5/2016_08_24_08_world.sql new file mode 100644 index 00000000000..68b4d9274ec --- /dev/null +++ b/sql/updates/world/3.3.5/2016_08_24_08_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 3cf78b79f67..95082a4268a 100644 --- a/src/server/scripts/EasternKingdoms/ScarletEnclave/chapter1.cpp +++ b/src/server/scripts/EasternKingdoms/ScarletEnclave/chapter1.cpp @@ -1023,7 +1023,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. } |
