Quest/Script: Kodo Roundup

Fix faction issue and handle the gossip correctly via the script
This commit is contained in:
Killyana
2019-01-09 17:24:30 +01:00
parent 2069d78ec7
commit 5e73647c84
2 changed files with 4 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
--
UPDATE `creature_template` SET `npcflag`=`npcflag`|1 WHERE `entry` IN (11627);

View File

@@ -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)