Skip to content

Commit

Permalink
équilibrage fight
Browse files Browse the repository at this point in the history
  • Loading branch information
BastLast committed Jul 10, 2020
1 parent 0157f0c commit 9464b5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/Fight.js
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ class Fight {
await this.nextTurn();
return;
}
if ((defender.speed < attacker.speed && success <= 0.1) || (defender.speed > attacker.speed && success < 0.5)) {
if ((defender.speed < attacker.speed * 0.8 && success <= 0.1) || (defender.speed > attacker.speed * 0.8 && success < 0.5)) {
far.damage = Math.round(2.0 * defender.power / 3.0);
far.fullSuccess = true;
} else {
Expand Down

0 comments on commit 9464b5e

Please sign in to comment.