From 73749e13fe3666c963a9cfdc0ea85a7d68d0b27d Mon Sep 17 00:00:00 2001 From: QAston Date: Sun, 19 Apr 2009 15:44:11 +0200 Subject: *Send overkill messages to client. --HG-- branch : trunk --- src/game/SpellAuras.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/game/SpellAuras.cpp') diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp index 04521881744..aace63d9d72 100644 --- a/src/game/SpellAuras.cpp +++ b/src/game/SpellAuras.cpp @@ -5883,6 +5883,8 @@ void AuraEffect::PeriodicTick() sLog.outDetail("PeriodicTick: %u (TypeId: %u) heal of %u (TypeId: %u) for %u health inflicted by %u", GUID_LOPART(GetCasterGUID()), GuidHigh2TypeId(GUID_HIPART(GetCasterGUID())), m_target->GetGUIDLow(), m_target->GetTypeId(), pdamage, GetId()); + int32 gain = m_target->ModifyHealth(pdamage); + WorldPacket data(SMSG_PERIODICAURALOG, (21+16));// we guess size data.append(m_target->GetPackGUID()); data.appendPackGUID(GetCasterGUID()); @@ -5890,11 +5892,9 @@ void AuraEffect::PeriodicTick() data << uint32(1); data << uint32(m_auraName); data << (uint32)pdamage; - data << uint32(0); // wotlk + data << uint32(pdamage - gain); // wotlk m_target->SendMessageToSet(&data,true); - int32 gain = m_target->ModifyHealth(pdamage); - // add HoTs to amount healed in bgs if( pCaster->GetTypeId() == TYPEID_PLAYER ) if( BattleGround *bg = ((Player*)pCaster)->GetBattleGround() ) -- cgit v1.2.3