Core/Misc: Log Spell/Aura name in Spell/Auras asserts

(cherry picked from commit 4130384f2e)
This commit is contained in:
jackpoz
2019-05-06 20:20:10 +02:00
committed by Shauren
parent 8385356abe
commit 6be185e6a2
2 changed files with 2 additions and 2 deletions

View File

@@ -2362,7 +2362,7 @@ std::string Aura::GetDebugInfo() const
{
std::stringstream sstr;
sstr << std::boolalpha
<< "Id: " << GetId() << " Caster: " << GetCasterGUID().ToString()
<< "Id: " << GetId() << " Name: '" << (*GetSpellInfo()->SpellName)[sWorld->GetDefaultDbcLocale()] << "' Caster: " << GetCasterGUID().ToString()
<< "\nOwner: " << (GetOwner() ? GetOwner()->GetDebugInfo() : "NULL");
return sstr.str();
}

View File

@@ -8217,7 +8217,7 @@ std::string Spell::GetDebugInfo() const
{
std::stringstream sstr;
sstr << std::boolalpha
<< "Id: " << GetSpellInfo()->Id << " OriginalCaster: " << m_originalCasterGUID.ToString()
<< "Id: " << GetSpellInfo()->Id << " Name: '" << (*GetSpellInfo()->SpellName)[sWorld->GetDefaultDbcLocale()] << "' OriginalCaster: " << m_originalCasterGUID.ToString()
<< " State: " << getState();
return sstr.str();
}