Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

In DotA, there is a character called "Axe". Every time he is attacked, he has a chance to spin ($17\%$) his blade and deal damage based on what level the skill is, $100 / 125 / 150 / 175$ damage for levels $1, 2, 3$, and $4$. When the spin activates, it triggers the cooldown of $0.7 / 0.65 / 0.6 / 0.55$ seconds, so that attacking Axe does not generate a chance to spin.

I was trying to calculate an average damage per second that this skill generates, given that most of the time you will find Axe taking around $5$ attacks per second (average $1.667$ attacks per second from creeps, $3$ creeps per camp), so I figured that would mean the probability of him spinning in any second is $1 - 0.83^5$, so given the damage from earlier, we should expect him to deal $60.61 / 75.76 / 90.91 / 106.07$ damage per second?

I got this calculation, but then I realized that I have to factor in the cooldown somewhere, but I have no idea where to start.

share|cite|improve this question
What is "the skill", Legionnaire, a creep, and a camp? How is the level determined? – Daniel Trebbien Aug 6 '10 at 0:38
Is Legionnaire another name for Axe? – Casebash Aug 6 '10 at 2:40
Legionnaire is the name for Axe in HoN. – Jacob Greenleaf Aug 6 '10 at 3:46
up vote 1 down vote accepted

Let r be the chance an attack caused axe to spin and d be the damage it does. Since we know the number of attacks on Axe per second, we just need to find the expected spin damage per attack, call this x. If someone attacks Axe once, we expect the retaliation damage to be rd. However, each attack blocks a certain number of attacks depending on cooldown, call this number b. This reduces our expected value by brx. So we have:


Note that this assumes the combat goes for an infinite amount of attacks. When the combat is shorter, the expected damage will be higher. Given the speed that combat happens in Dota, this effect will often be significant

share|cite|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.