mirror of
https://github.com/araxiaonline/TrinityCore.git
synced 2026-06-17 13:39:46 -04:00
Core: More INFO -> DEBUG (Unit.cpp this time)
(cherry picked from commit 64584e9e7a)
Conflicts:
src/server/game/Entities/Unit/Unit.cpp
This commit is contained in:
@@ -2115,9 +2115,9 @@ void Unit::SendMeleeAttackStop(Unit* victim)
|
||||
SendMessageToSet(WorldPackets::Combat::SAttackStop(this, victim).Write(), true);
|
||||
|
||||
if (victim)
|
||||
TC_LOG_INFO("entities.unit", "%s stopped attacking %s", GetGUID().ToString().c_str(), victim->GetGUID().ToString().c_str());
|
||||
TC_LOG_DEBUG("entities.unit", "%s stopped attacking %s", GetGUID().ToString().c_str(), victim->GetGUID().ToString().c_str());
|
||||
else
|
||||
TC_LOG_INFO("entities.unit", "%s stopped attacking", GetGUID().ToString().c_str());
|
||||
TC_LOG_DEBUG("entities.unit", "%s stopped attacking", GetGUID().ToString().c_str());
|
||||
}
|
||||
|
||||
bool Unit::isSpellBlocked(Unit* victim, SpellInfo const* spellProto, WeaponAttackType /*attackType*/)
|
||||
@@ -15717,30 +15717,30 @@ void Unit::StopAttackFaction(uint32 faction_id)
|
||||
void Unit::OutDebugInfo() const
|
||||
{
|
||||
TC_LOG_ERROR("entities.unit", "Unit::OutDebugInfo");
|
||||
TC_LOG_INFO("entities.unit", "%s name %s", GetGUID().ToString().c_str(), GetName().c_str());
|
||||
TC_LOG_INFO("entities.unit", "Owner %s, Minion %s, Charmer %s, Charmed %s", GetOwnerGUID().ToString().c_str(), GetMinionGUID().ToString().c_str(), GetCharmerGUID().ToString().c_str(), GetCharmGUID().ToString().c_str());
|
||||
TC_LOG_INFO("entities.unit", "In world %u, unit type mask %u", (uint32)(IsInWorld() ? 1 : 0), m_unitTypeMask);
|
||||
TC_LOG_DEBUG("entities.unit", "%s name %s", GetGUID().ToString().c_str(), GetName().c_str());
|
||||
TC_LOG_DEBUG("entities.unit", "Owner %s, Minion %s, Charmer %s, Charmed %s", GetOwnerGUID().ToString().c_str(), GetMinionGUID().ToString().c_str(), GetCharmerGUID().ToString().c_str(), GetCharmGUID().ToString().c_str());
|
||||
TC_LOG_DEBUG("entities.unit", "In world %u, unit type mask %u", (uint32)(IsInWorld() ? 1 : 0), m_unitTypeMask);
|
||||
if (IsInWorld())
|
||||
TC_LOG_INFO("entities.unit", "Mapid %u", GetMapId());
|
||||
TC_LOG_DEBUG("entities.unit", "Mapid %u", GetMapId());
|
||||
|
||||
std::ostringstream o;
|
||||
o << "Summon Slot: ";
|
||||
for (uint32 i = 0; i < MAX_SUMMON_SLOT; ++i)
|
||||
o << m_SummonSlot[i].ToString() << ", ";
|
||||
|
||||
TC_LOG_INFO("entities.unit", "%s", o.str().c_str());
|
||||
TC_LOG_DEBUG("entities.unit", "%s", o.str().c_str());
|
||||
o.str("");
|
||||
|
||||
o << "Controlled List: ";
|
||||
for (ControlList::const_iterator itr = m_Controlled.begin(); itr != m_Controlled.end(); ++itr)
|
||||
o << (*itr)->GetGUID().ToString() << ", ";
|
||||
TC_LOG_INFO("entities.unit", "%s", o.str().c_str());
|
||||
TC_LOG_DEBUG("entities.unit", "%s", o.str().c_str());
|
||||
o.str("");
|
||||
|
||||
o << "Aura List: ";
|
||||
for (AuraApplicationMap::const_iterator itr = m_appliedAuras.begin(); itr != m_appliedAuras.end(); ++itr)
|
||||
o << itr->first << ", ";
|
||||
TC_LOG_INFO("entities.unit", "%s", o.str().c_str());
|
||||
TC_LOG_DEBUG("entities.unit", "%s", o.str().c_str());
|
||||
o.str("");
|
||||
|
||||
if (IsVehicle())
|
||||
@@ -15749,11 +15749,11 @@ void Unit::OutDebugInfo() const
|
||||
for (SeatMap::iterator itr = GetVehicleKit()->Seats.begin(); itr != GetVehicleKit()->Seats.end(); ++itr)
|
||||
if (Unit* passenger = ObjectAccessor::GetUnit(*GetVehicleBase(), itr->second.Passenger.Guid))
|
||||
o << passenger->GetGUID().ToString() << ", ";
|
||||
TC_LOG_INFO("entities.unit", "%s", o.str().c_str());
|
||||
TC_LOG_DEBUG("entities.unit", "%s", o.str().c_str());
|
||||
}
|
||||
|
||||
if (GetVehicle())
|
||||
TC_LOG_INFO("entities.unit", "On vehicle %u.", GetVehicleBase()->GetEntry());
|
||||
TC_LOG_DEBUG("entities.unit", "On vehicle %u.", GetVehicleBase()->GetEntry());
|
||||
}
|
||||
|
||||
uint32 Unit::GetRemainingPeriodicAmount(ObjectGuid caster, uint32 spellId, AuraType auraType, uint8 effectIndex) const
|
||||
|
||||
Reference in New Issue
Block a user