Core/Unit: consistency fix
This commit is contained in:
1 parent
469870a141
commit
4e61ff8c9c
1 file changed
+1
-1
@@ -122,7 +122,7 @@ m_damageType(DIRECT_DAMAGE), m_attackType(dmgInfo.attackType)
|
||||
|
||||
void DamageInfo::ModifyDamage(int32 amount)
|
||||
{
|
||||
amount = std::max(amount, -static_cast<int32>(m_damage));
|
||||
amount = std::max(amount, -static_cast<int32>(GetDamage()));
|
||||
m_damage += amount;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user