Compile fix try

This commit is contained in:
Aokromes committed 2017-01-18 15:09:57 +01:00
1 parent 0c97c46361
commit b7432bc39a
11 files changed
+63 -42

No files matched your search

+2 -2
View File
@@ -505,8 +505,8 @@ int32 SpellEffectInfo::CalcValue(Unit const* caster, int32 const* bp, Unit const
if (caster)
{
// bonus amount from combo points
if (caster->m_movedPlayer && comboDamage)
if (uint8 comboPoints = caster->m_movedPlayer->GetComboPoints())
if (caster->m_playerMovingMe && comboDamage)
if (uint8 comboPoints = caster->m_playerMovingMe->GetComboPoints())
value += comboDamage * comboPoints;
value = caster->ApplyEffectModifiers(_spellInfo, _effIndex, value);