Skip to content

Commit

Permalink
[9495] Show overheal from HoT in combat log.
Browse files Browse the repository at this point in the history
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
  • Loading branch information
qsa authored and VladimirMangos committed Mar 1, 2010
1 parent affef52 commit 10b40bd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions src/game/SpellAuras.cpp
Expand Up @@ -7142,10 +7142,9 @@ void Aura::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());

SpellPeriodicAuraLogInfo pInfo(this, pdamage, 0, 0, 0, 0.0f, isCrit);
m_target->SendPeriodicAuraLog(&pInfo);

int32 gain = m_target->ModifyHealth(pdamage);
SpellPeriodicAuraLogInfo pInfo(this, pdamage, (pdamage - uint32(gain)), 0, 0, 0.0f, isCrit);
m_target->SendPeriodicAuraLog(&pInfo);

// Set trigger flag
uint32 procAttacker = PROC_FLAG_ON_DO_PERIODIC;
Expand Down
2 changes: 1 addition & 1 deletion src/shared/revision_nr.h
@@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "9494"
#define REVISION_NR "9495"
#endif // __REVISION_NR_H__

0 comments on commit 10b40bd

Please sign in to comment.