From 2fcfae180676b20024198c890dd77c55272f5cda Mon Sep 17 00:00:00 2001 From: Rat Date: Tue, 31 Mar 2015 19:49:29 +0200 Subject: Core/Commands: Added more npc info to debug phase command --- src/server/scripts/Commands/cs_debug.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src') diff --git a/src/server/scripts/Commands/cs_debug.cpp b/src/server/scripts/Commands/cs_debug.cpp index 7a98d1c0c13..84e3cf4c23c 100644 --- a/src/server/scripts/Commands/cs_debug.cpp +++ b/src/server/scripts/Commands/cs_debug.cpp @@ -1408,6 +1408,14 @@ public: return false; } + if (target->GetTypeId() == TYPEID_UNIT) + { + if (target->ToCreature()->GetDBPhase() > 0) + handler->PSendSysMessage("Target creature's PhaseId in DB: %d", target->ToCreature()->GetDBPhase()); + else if (target->ToCreature()->GetDBPhase() < 0) + handler->PSendSysMessage("Target creature's PhaseGroup in DB: %d", abs(target->ToCreature()->GetDBPhase())); + } + std::stringstream phases; for (uint32 phase : target->GetPhases()) -- cgit v1.2.3