diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/server/scripts/Commands/cs_debug.cpp | 8 |
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()) |