mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 01:15:35 +01:00
Core/Phases:
- Added terrain swap info to .gps command (todo: move text to db) - RebuildTerrainSwaps when adding a Unit to world
This commit is contained in:
@@ -216,6 +216,21 @@ public:
|
||||
if (status)
|
||||
handler->PSendSysMessage(LANG_LIQUID_STATUS, liquidStatus.level, liquidStatus.depth_level, liquidStatus.entry, liquidStatus.type_flags, status);
|
||||
|
||||
if (!object->GetTerrainSwaps().empty())
|
||||
{
|
||||
std::stringstream ss;
|
||||
for (uint32 swap : object->GetTerrainSwaps())
|
||||
ss << swap << " ";
|
||||
handler->PSendSysMessage("Target's active terrain swaps: %s", ss.str().c_str());
|
||||
}
|
||||
if (!object->GetWorldMapAreaSwaps().empty())
|
||||
{
|
||||
std::stringstream ss;
|
||||
for (uint32 swap : object->GetWorldMapAreaSwaps())
|
||||
ss << swap << " ";
|
||||
handler->PSendSysMessage("Target's active world map area swaps: %s", ss.str().c_str());
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user