diff options
author | jackpoz <giacomopoz@gmail.com> | 2019-05-06 20:20:10 +0200 |
---|---|---|
committer | jackpoz <giacomopoz@gmail.com> | 2019-05-06 20:20:10 +0200 |
commit | 4130384f2e88ba266f75c553c89a351d43e52203 (patch) | |
tree | 6d3024ef8e42cbf75cdc52d8302d342dad127c46 /src | |
parent | 84c5be936d5527bf3a8035410c927231d921278e (diff) |
Core/Misc: Log Spell/Aura name in Spell/Auras asserts
Diffstat (limited to 'src')
-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 1ac03700311..f955ee68b81 100644 --- a/src/server/game/Spells/Auras/SpellAuras.cpp +++ b/src/server/game/Spells/Auras/SpellAuras.cpp @@ -2574,7 +2574,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 a48fe01c880..aa7438fc091 100644 --- a/src/server/game/Spells/Spell.cpp +++ b/src/server/game/Spells/Spell.cpp @@ -8023,7 +8023,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(); } |