Core/Creatures: creatures only have one damage

Closes #21236
This commit is contained in:
ariel-
2018-01-16 14:44:04 -03:00
parent d4e64950a1
commit 3d7166c1c7
+9 -1
View File
@@ -1066,8 +1066,16 @@ void Creature::UpdateAttackPowerAndDamage(bool ranged)
}
}
void Creature::CalculateMinMaxDamage(WeaponAttackType attType, bool normalized, bool addTotalPct, float& minDamage, float& maxDamage, uint8 /*damageIndex*/) const
void Creature::CalculateMinMaxDamage(WeaponAttackType attType, bool normalized, bool addTotalPct, float& minDamage, float& maxDamage, uint8 damageIndex /*= 0*/) const
{
// creatures only have one damage
if (damageIndex != 0)
{
minDamage = 0.f;
maxDamage = 0.f;
return;
}
float variance = 1.0f;
UnitMods unitMod;
switch (attType)