*Add an error log to find crash reason of m_spellModTakingSpell.
--HG-- branch : trunk
This commit is contained in:
+7
-1
@@ -1125,7 +1125,13 @@ void Player::Update( uint32 p_time )
|
|||||||
|
|
||||||
// If this is set during update SetSpellModTakingSpell call is missing somewhere in the code
|
// If this is set during update SetSpellModTakingSpell call is missing somewhere in the code
|
||||||
// Having this would prevent more aura charges to be dropped, so let's crash
|
// Having this would prevent more aura charges to be dropped, so let's crash
|
||||||
assert (!m_spellModTakingSpell);
|
//assert (!m_spellModTakingSpell);
|
||||||
|
if(m_spellModTakingSpell)
|
||||||
|
{
|
||||||
|
sLog.outCrash("Player has m_spellModTakingSpell %u during update!", m_spellModTakingSpell->m_spellInfo->Id);
|
||||||
|
assert(false);
|
||||||
|
m_spellModTakingSpell = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
//used to implement delayed far teleports
|
//used to implement delayed far teleports
|
||||||
SetCanDelayTeleport(true);
|
SetCanDelayTeleport(true);
|
||||||
|
|||||||
+2
-1
@@ -4512,7 +4512,8 @@ void Unit::SendSpellNonMeleeDamageLog(SpellNonMeleeDamage *log)
|
|||||||
data.append(log->attacker->GetPackGUID());
|
data.append(log->attacker->GetPackGUID());
|
||||||
data << uint32(log->SpellID);
|
data << uint32(log->SpellID);
|
||||||
data << uint32(log->damage); // damage amount
|
data << uint32(log->damage); // damage amount
|
||||||
data << uint32(int32 (log->target->GetHealth()-log->damage ) >0 ? 0 : log->damage - log->target->GetHealth());
|
int32 overkill = log->damage - log->target->GetHealth();
|
||||||
|
data << uint32(overkill > 0 ? overkill : 0);
|
||||||
//data << uint32(log->overkill); // overkill
|
//data << uint32(log->overkill); // overkill
|
||||||
data << uint8 (log->schoolMask); // damage school
|
data << uint8 (log->schoolMask); // damage school
|
||||||
data << uint32(log->absorb); // AbsorbedDamage
|
data << uint32(log->absorb); // AbsorbedDamage
|
||||||
|
|||||||
Reference in New Issue
Block a user