mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 01:15:35 +01:00
*Fix the bug that make healing/damage spell do not work.
--HG-- branch : trunk
This commit is contained in:
@@ -5344,7 +5344,14 @@ int32 Spell::CalculateDamageDone(Unit *unit, const uint32 effectMask, float *mul
|
||||
{
|
||||
if (effectMask & (1<<i))
|
||||
{
|
||||
damage = CalculateDamage(i, NULL) * m_damageMultipliers[i];
|
||||
if(m_applyMultiplierMask & (1 << i))
|
||||
{
|
||||
damage = CalculateDamage(i, NULL) * m_damageMultipliers[i];
|
||||
m_damageMultipliers[i] *= multiplier[i];
|
||||
}
|
||||
else
|
||||
damage = CalculateDamage(i, NULL);
|
||||
|
||||
switch(m_spellInfo->Effect[i])
|
||||
{
|
||||
case SPELL_EFFECT_SCHOOL_DAMAGE:
|
||||
@@ -5360,8 +5367,6 @@ int32 Spell::CalculateDamageDone(Unit *unit, const uint32 effectMask, float *mul
|
||||
SpellDamageHeal(i);
|
||||
break;
|
||||
}
|
||||
if ( m_applyMultiplierMask & (1 << i) )
|
||||
m_damageMultipliers[i] *= multiplier[i];
|
||||
}
|
||||
}
|
||||
return m_damage;
|
||||
|
||||
Reference in New Issue
Block a user