diff options
| author | QAston <none@none> | 2009-04-19 15:44:11 +0200 |
|---|---|---|
| committer | QAston <none@none> | 2009-04-19 15:44:11 +0200 |
| commit | 73749e13fe3666c963a9cfdc0ea85a7d68d0b27d (patch) | |
| tree | d6cd3938a176bf29fca2b24526c7be867c92369d /src/game/SpellAuras.cpp | |
| parent | 568879e10967c984a39c9b7a37be55e0ffa4a00b (diff) | |
*Send overkill messages to client.
--HG--
branch : trunk
Diffstat (limited to 'src/game/SpellAuras.cpp')
| -rw-r--r-- | src/game/SpellAuras.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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() ) |
