aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoschiwald <joschiwald.trinity@gmail.com>2017-08-19 19:08:43 +0200
committerjoschiwald <joschiwald.trinity@gmail.com>2017-08-19 19:08:43 +0200
commit6ff75a03453a57edb06b565644ed979de58cdea1 (patch)
tree7d6b173dc3c9866c45fb3ad19754ba3934115d6b
parent921fbc81483e51a7ee619e5b0bfee9fb5fdfe0b1 (diff)
Core/Misc: Removed obsolete comments
-rw-r--r--src/server/game/Entities/Unit/Unit.cpp14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/server/game/Entities/Unit/Unit.cpp b/src/server/game/Entities/Unit/Unit.cpp
index 4fceae4473d..8f173567a00 100644
--- a/src/server/game/Entities/Unit/Unit.cpp
+++ b/src/server/game/Entities/Unit/Unit.cpp
@@ -240,15 +240,8 @@ ProcEventInfo::ProcEventInfo(Unit* actor, Unit* actionTarget, Unit* procTarget,
_damageInfo(damageInfo), _healInfo(healInfo)
{ }
-SpellNonMeleeDamage::SpellNonMeleeDamage(Unit* _attacker, Unit* _target, uint32 _SpellID, uint32 _SpellXSpellVisualID, uint32 _schoolMask, ObjectGuid _castId)
- : target(_target), attacker(_attacker), castId(_castId), SpellID(_SpellID), SpellXSpellVisualID(_SpellXSpellVisualID), damage(0), schoolMask(_schoolMask),
- absorb(0), resist(0), periodicLog(false), blocked(0), HitInfo(0), cleanDamage(0), preHitHealth(_target->GetHealth())
-{
-}
-
SpellInfo const* ProcEventInfo::GetSpellInfo() const
{
- /// WORKAROUND: unfinished new proc system
if (_spell)
return _spell->GetSpellInfo();
if (_damageInfo)
@@ -260,7 +253,6 @@ SpellInfo const* ProcEventInfo::GetSpellInfo() const
SpellSchoolMask ProcEventInfo::GetSchoolMask() const
{
- /// WORKAROUND: unfinished new proc system
if (_spell)
return _spell->GetSpellInfo()->GetSchoolMask();
if (_damageInfo)
@@ -270,6 +262,12 @@ SpellSchoolMask ProcEventInfo::GetSchoolMask() const
return SPELL_SCHOOL_MASK_NONE;
}
+SpellNonMeleeDamage::SpellNonMeleeDamage(Unit* _attacker, Unit* _target, uint32 _SpellID, uint32 _SpellXSpellVisualID, uint32 _schoolMask, ObjectGuid _castId)
+ : target(_target), attacker(_attacker), castId(_castId), SpellID(_SpellID), SpellXSpellVisualID(_SpellXSpellVisualID), damage(0), schoolMask(_schoolMask),
+ absorb(0), resist(0), periodicLog(false), blocked(0), HitInfo(0), cleanDamage(0), preHitHealth(_target->GetHealth())
+{
+}
+
Unit::Unit(bool isWorldObject) :
WorldObject(isWorldObject), m_playerMovingMe(NULL), m_lastSanctuaryTime(0),
IsAIEnabled(false), NeedChangeAI(false), LastCharmerGUID(),