• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Spell] Formula

Status
Not open for further replies.
Level 11
Joined
Mar 27, 2011
Messages
293
Hello,

Thank you for kindly reading this thread, I hope to contribute in some way to my question:

What is the formula to calculate the minimum and maximum damage to any unit can perform with your physical attack (
melee and/or ranged)?

Thanks for everything and have a great day.
 
Last edited:
Level 26
Joined
Aug 18, 2009
Messages
4,097
Which depends on the target.

If you are referring to the display in the unit's info box, the white base damage is from baseDamage+dices to baseDamage+dices*sides, for heroes +primary attribute (white)*damagePerPrimaryAttributePoint. There is an upgrade effect to increase the amount of dices.

The green bonus/red malus is +primary attribute (bonus)*damagePerPrimaryAttribute and then may be influenced by all kinds of ability effects like flat item bonuses or roar, inner fire etc.
 
Level 26
Joined
Aug 18, 2009
Messages
4,097
WaterKnight, note that heroes also takes the damage values in their data like normal units.

Yes, which is why I appended the plus operator there. Heroes additionally gain from hero attributes.

As I said, the baseDamage is just added. For each dice you have, a number between 1 and number of sides is rolled and added up, thus

min=base+dices (all dices roll the least value 1)
max=base+dices*sides (all dices roll the highest value sides)

The chance is higher for medium values since there are more possibilities to roll those numbers.
 
Status
Not open for further replies.
Top