Open
Description
It's a small thing, but the isDefender
parameter of getDamageReduction
actually works like the isAttacker
parameter of getDeffensiveBonus
: it's true
for the player who started the attack (and is receiving the counterattack), and false
for the player who got attacked (and so will be performing the counterattack, if any). Renaming that parameter in co.js will ease a bit of confusion.