diff options
| author | ccrs <ccrs@users.noreply.github.com> | 2019-06-29 16:01:58 +0200 |
|---|---|---|
| committer | Shauren <shauren.trinity@gmail.com> | 2021-12-13 00:42:18 +0100 |
| commit | cadbf42ea4489933f28caf356f8c8d09ca243083 (patch) | |
| tree | edd3011eb7d7cb6802685fe4186ae56eaa92331f /src/server/scripts/Kalimdor | |
| parent | 996b7c1f0ebb22b424d7406adf88b43143b2ede4 (diff) | |
Misc: some corrections after recent merges
(cherry picked from commit 626a24822b3c6a5d5b9a4b29861ecf393fd9288b)
Diffstat (limited to 'src/server/scripts/Kalimdor')
| -rw-r--r-- | src/server/scripts/Kalimdor/CavernsOfTime/CullingOfStratholme/instance_culling_of_stratholme.cpp | 2 | ||||
| -rw-r--r-- | src/server/scripts/Kalimdor/CavernsOfTime/CullingOfStratholme/npc_arthas.cpp | 19 |
2 files changed, 20 insertions, 1 deletions
diff --git a/src/server/scripts/Kalimdor/CavernsOfTime/CullingOfStratholme/instance_culling_of_stratholme.cpp b/src/server/scripts/Kalimdor/CavernsOfTime/CullingOfStratholme/instance_culling_of_stratholme.cpp index 54223d08184..db3f2bcd876 100644 --- a/src/server/scripts/Kalimdor/CavernsOfTime/CullingOfStratholme/instance_culling_of_stratholme.cpp +++ b/src/server/scripts/Kalimdor/CavernsOfTime/CullingOfStratholme/instance_culling_of_stratholme.cpp @@ -638,6 +638,8 @@ class instance_culling_of_stratholme : public InstanceMapScript object->setActive(true); object->SetGoState(_currentState <= GAUNTLET_TRANSITION ? GO_STATE_READY : GO_STATE_ACTIVE); break; + default: + break; } } diff --git a/src/server/scripts/Kalimdor/CavernsOfTime/CullingOfStratholme/npc_arthas.cpp b/src/server/scripts/Kalimdor/CavernsOfTime/CullingOfStratholme/npc_arthas.cpp index 19a75c6fc99..c2ab2ee203b 100644 --- a/src/server/scripts/Kalimdor/CavernsOfTime/CullingOfStratholme/npc_arthas.cpp +++ b/src/server/scripts/Kalimdor/CavernsOfTime/CullingOfStratholme/npc_arthas.cpp @@ -555,8 +555,12 @@ public: void AdvanceToState(COSProgressStates newState) { + TC_LOG_TRACE("scripts.cos", "npc_arthas_stratholmeAI::AdvanceToState: advancing to 0x%X", newState); if (!_progressRP) + { + TC_LOG_WARN("scripts.cos", "npc_arthas_stratholmeAI::AdvanceToState: advancing to instance state 0x%X, but RP is paused. Overriding!", newState); _progressRP = true; + } auto itr = ArthasSnapbackPositions.find(newState); if (itr != ArthasSnapbackPositions.end()) @@ -576,6 +580,7 @@ public: else me->RemoveNpcFlag(UNIT_NPC_FLAG_GOSSIP); + TC_LOG_TRACE("scripts.cos", "npc_arthas_stratholmeAI::AdvanceToState: has snapback for this state, distance = %u", target.SnapbackPosition->GetExactDist(me)); // Snapback handling - if we're too far from where we're supposed to be, teleport there if (target.SnapbackPosition->GetExactDist(me) > ArthasSnapbackDistanceThreshold) me->NearTeleportTo(*target.SnapbackPosition); @@ -1536,18 +1541,24 @@ public: void JustEngagedWith(Unit* who) override { + TC_LOG_TRACE("scripts.cos", "npc_arthas_stratholmeAI::JustEngagedWith: RP in progress? '%s'", _progressRP ? "YES" : "NO"); if (_progressRP) { _progressRP = false; me->SetHomePosition(me->GetPosition()); SplineChainMovementGenerator::GetResumeInfo(_resumeMovement, me); + if (!_resumeMovement.Empty()) + TC_LOG_TRACE("scripts.cos", "npc_arthas_stratholmeAI::JustEngagedWith: spline chain motion paused"); + else + TC_LOG_TRACE("scripts.cos", "npc_arthas_stratholmeAI::JustEngagedWith: entered combat without pathing, pausing RP regardless"); } ScriptedAI::JustEngagedWith(who); } void EnterEvadeMode(EvadeReason why) override { + TC_LOG_TRACE("scripts.cos", "npc_arthas_stratholmeAI::EnterEvadeMode: why = %u ", why); ScriptedAI::EnterEvadeMode(why); } @@ -1560,9 +1571,12 @@ public: if (!_resumeMovement.Empty()) // WP motion was interrupted, resume { + TC_LOG_TRACE("scripts.cos", "npc_arthas_stratholmeAI::JustReachedHome: Resuming motion"); me->GetMotionMaster()->ResumeSplineChain(_resumeMovement); _resumeMovement.Clear(); } + else + TC_LOG_TRACE("scripts.cos", "npc_arthas_stratholmeAI::JustReachedHome: Back at leash pos, resuming RP"); if (_afterCombat) { @@ -1591,8 +1605,11 @@ public: instance->SetGuidData(command, cause->GetGUID()); } - bool GossipSelect(Player* player, uint32 /*sender*/, uint32 /*listId*/) override + bool GossipSelect(Player* player, uint32 /*sender*/, uint32 listId) override { + uint32 const action = GetGossipActionFor(player, listId); + TC_LOG_TRACE("scripts.cos", "npc_arthas_stratholmeAI::GossipSelect: '%s' selects action '%u' on '%s'", player->GetGUID().ToString().c_str(), action, me->GetGUID().ToString().c_str()); + AdvanceDungeon(player, PURGE_PENDING, DATA_START_PURGE); AdvanceDungeon(player, TOWN_HALL_PENDING, DATA_START_TOWN_HALL); AdvanceDungeon(player, TOWN_HALL_COMPLETE, DATA_TO_GAUNTLET); |
