mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 17:54:48 +01:00
Quest/Script: Kodo Roundup
Fix faction issue and handle the gossip correctly via the script
This commit is contained in:
2
sql/updates/world/3.3.5/2019_01_09_02_world_335.sql
Normal file
2
sql/updates/world/3.3.5/2019_01_09_02_world_335.sql
Normal file
@@ -0,0 +1,2 @@
|
||||
--
|
||||
UPDATE `creature_template` SET `npcflag`=`npcflag`|1 WHERE `entry` IN (11627);
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user