diff options
author | Killyana <morphone1@gmail.com> | 2019-01-09 17:24:30 +0100 |
---|---|---|
committer | Killyana <morphone1@gmail.com> | 2019-01-09 17:24:30 +0100 |
commit | 5e73647c84338705a2b45b95705c08ea4a5e2668 (patch) | |
tree | e927f0f75166ddc5f20dcbdce0308c3306ed5bfc | |
parent | 2069d78ec7e3be4e58de9962332f36f1cab61bad (diff) |
Quest/Script: Kodo Roundup
Fix faction issue and handle the gossip correctly via the script
-rw-r--r-- | sql/updates/world/3.3.5/2019_01_09_02_world_335.sql | 2 | ||||
-rw-r--r-- | src/server/scripts/Kalimdor/zone_desolace.cpp | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/sql/updates/world/3.3.5/2019_01_09_02_world_335.sql b/sql/updates/world/3.3.5/2019_01_09_02_world_335.sql new file mode 100644 index 00000000000..90f3880d9d8 --- /dev/null +++ b/sql/updates/world/3.3.5/2019_01_09_02_world_335.sql @@ -0,0 +1,2 @@ +-- +UPDATE `creature_template` SET `npcflag`=`npcflag`|1 WHERE `entry` IN (11627); diff --git a/src/server/scripts/Kalimdor/zone_desolace.cpp b/src/server/scripts/Kalimdor/zone_desolace.cpp index 6f26e1f1218..f9a76edc77b 100644 --- a/src/server/scripts/Kalimdor/zone_desolace.cpp +++ b/src/server/scripts/Kalimdor/zone_desolace.cpp @@ -91,9 +91,11 @@ public: me->UpdateEntry(NPC_TAMED_KODO); me->CombatStop(); me->GetThreatManager().ClearAllThreat(); + me->SetFaction(FACTION_FRIENDLY); me->SetSpeedRate(MOVE_RUN, 0.6f); me->GetMotionMaster()->MoveFollow(caster, PET_FOLLOW_DIST, me->GetFollowAngle()); me->setActive(true); + me->RemoveFlag(UNIT_NPC_FLAGS, UNIT_NPC_FLAG_GOSSIP); } } else if (spell->Id == SPELL_KODO_KOMBO_GOSSIP) |