mirror of
https://github.com/araxiaonline/TrinityCore.git
synced 2026-06-13 11:43:18 -04:00
Core/Misc: Explicitly include required headers instead of relying on them to be included by other headers
This commit is contained in:
@@ -909,7 +909,7 @@ public:
|
||||
return false;
|
||||
}
|
||||
|
||||
handler->PSendSysMessage("Threat info for %s (%s):", target->GetName(), target->GetGUID().ToString().c_str());
|
||||
handler->PSendSysMessage("Threat info for %s (%s):", target->GetName().c_str(), target->GetGUID().ToString().c_str());
|
||||
|
||||
ThreatManager const& mgr = target->GetThreatManager();
|
||||
|
||||
@@ -1468,7 +1468,7 @@ public:
|
||||
ASSERT(groupData); // checked by objectmgr on load
|
||||
if (explain)
|
||||
{
|
||||
handler->PSendSysMessage(" |-- '%s' (%u)", groupData->name, pair.first);
|
||||
handler->PSendSysMessage(" |-- '%s' (%u)", groupData->name.c_str(), pair.first);
|
||||
bool isBlocked = false, isSpawned = false;
|
||||
for (auto const& tuple : pair.second)
|
||||
{
|
||||
@@ -1481,29 +1481,29 @@ public:
|
||||
{
|
||||
isSpawned = true;
|
||||
if (isBlocked)
|
||||
handler->PSendSysMessage(" | |-- '%s' would be allowed to spawn by boss state %u being %s, but this is overruled", groupData->name, bossStateId, InstanceScript::GetBossStateName(actualState));
|
||||
handler->PSendSysMessage(" | |-- '%s' would be allowed to spawn by boss state %u being %s, but this is overruled", groupData->name.c_str(), bossStateId, InstanceScript::GetBossStateName(actualState));
|
||||
else
|
||||
handler->PSendSysMessage(" | |-- '%s' is allowed to spawn because boss state %u is %s.", groupData->name, bossStateId, InstanceScript::GetBossStateName(bossStateId));
|
||||
handler->PSendSysMessage(" | |-- '%s' is allowed to spawn because boss state %u is %s.", groupData->name.c_str(), bossStateId, InstanceScript::GetBossStateName(bossStateId));
|
||||
}
|
||||
else
|
||||
{
|
||||
isBlocked = true;
|
||||
handler->PSendSysMessage(" | |-- '%s' is blocked from spawning because boss state %u is %s.", groupData->name, bossStateId, InstanceScript::GetBossStateName(bossStateId));
|
||||
handler->PSendSysMessage(" | |-- '%s' is blocked from spawning because boss state %u is %s.", groupData->name.c_str(), bossStateId, InstanceScript::GetBossStateName(bossStateId));
|
||||
}
|
||||
}
|
||||
else
|
||||
handler->PSendSysMessage(" | |-- '%s' could've been %s if boss state %u matched mask 0x%02x; but it is %s -> 0x%02x, which does not match.",
|
||||
groupData->name, isSpawn ? "allowed to spawn" : "blocked from spawning", bossStateId, std::get<2>(tuple), InstanceScript::GetBossStateName(actualState), (1 << actualState));
|
||||
groupData->name.c_str(), isSpawn ? "allowed to spawn" : "blocked from spawning", bossStateId, std::get<2>(tuple), InstanceScript::GetBossStateName(actualState), (1 << actualState));
|
||||
}
|
||||
if (isBlocked)
|
||||
handler->PSendSysMessage(" | |=> '%s' is not active due to a blocking rule being matched", groupData->name);
|
||||
handler->PSendSysMessage(" | |=> '%s' is not active due to a blocking rule being matched", groupData->name.c_str());
|
||||
else if (isSpawned)
|
||||
handler->PSendSysMessage(" | |=> '%s' is active due to a spawn rule being matched", groupData->name);
|
||||
handler->PSendSysMessage(" | |=> '%s' is active due to a spawn rule being matched", groupData->name.c_str());
|
||||
else
|
||||
handler->PSendSysMessage(" | |=> '%s' is not active due to none of its rules being matched", groupData->name);
|
||||
handler->PSendSysMessage(" | |=> '%s' is not active due to none of its rules being matched", groupData->name.c_str());
|
||||
}
|
||||
else
|
||||
handler->PSendSysMessage(" - '%s' (%u) is %sactive", groupData->name, pair.first, map->IsSpawnGroupActive(pair.first) ? "" : "not ");
|
||||
handler->PSendSysMessage(" - '%s' (%u) is %sactive", groupData->name.c_str(), pair.first, map->IsSpawnGroupActive(pair.first) ? "" : "not ");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user