aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRat <gmstreetrat@gmail.com>2015-03-31 19:49:29 +0200
committerRat <gmstreetrat@gmail.com>2015-03-31 19:49:29 +0200
commit2fcfae180676b20024198c890dd77c55272f5cda (patch)
tree155184a86ced06b280c7369d0eb676f7c0b12ff3 /src
parent835163746c2e8ce1dc99ee76f3bea98f61f531f8 (diff)
Core/Commands: Added more npc info to debug phase command
Diffstat (limited to 'src')
-rw-r--r--src/server/scripts/Commands/cs_debug.cpp8
1 files changed, 8 insertions, 0 deletions
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())