diff options
author | jackpoz <giacomopoz@gmail.com> | 2019-05-06 20:20:10 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2021-12-04 00:31:28 +0100 |
commit | 6be185e6a2e0d1a63a0287c0166892c53ccc39c7 (patch) | |
tree | cebbc81253133b097203555cf098c826fc44169b | |
parent | 8385356abe5d825e29af47a8ead9c2ed3cc07a46 (diff) |
Core/Misc: Log Spell/Aura name in Spell/Auras asserts
(cherry picked from commit 4130384f2e88ba266f75c553c89a351d43e52203)
-rw-r--r-- | src/server/game/Spells/Auras/SpellAuras.cpp | 2 | ||||
-rw-r--r-- | src/server/game/Spells/Spell.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/server/game/Spells/Auras/SpellAuras.cpp b/src/server/game/Spells/Auras/SpellAuras.cpp index 8b37dc1b232..9e29beb66a8 100644 --- a/src/server/game/Spells/Auras/SpellAuras.cpp +++ b/src/server/game/Spells/Auras/SpellAuras.cpp @@ -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(); } diff --git a/src/server/game/Spells/Spell.cpp b/src/server/game/Spells/Spell.cpp index 8e755f1cb2e..369da6aa895 100644 --- a/src/server/game/Spells/Spell.cpp +++ b/src/server/game/Spells/Spell.cpp @@ -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(); } |