FutureShockco / drugwars.io

The drugs are virtual, but the money is real
https://drugwars.io
32 stars 15 forks source link

the ninja does not dodge or dodge only once, but not twice #76

Closed pjd79 closed 5 years ago

pjd79 commented 5 years ago

Expected behavior

The ninja should survive to two deadly hit

Actual behavior

At the first launch of the DrugWars fight simulator v0.0.36 , for the battle between 1 ninja and 1 mercenary, I obtain the report:

Fight start [A] Attacker - [D] Defender

Round 1

[A] ninja (1) with 30 HP take 120 DMG from [D] mercenary (1) with "bulletproof". [A] ninja (1) dodged 120 DMG. [A] ninja (1) dodged 120 DMG.

Round 2

[D] mercenary (1) with 75 HP take 40 DMG from [A] ninja (1) with "attack". [D] mercenary (1) got now 35 HP.

[A] ninja (1) with 30 HP take 120 DMG from [D] mercenary (1) with "bulletproof". [A] ninja (1) is now dead.

Fight ended in round 2, Winner is : defender

From the second launch, i have this report

Fight start [A] Attacker - [D] Defender Round 1

[A] ninja (1) with 30 HP take 120 DMG from [D] mercenary (1) with "bulletproof". [A] ninja (1) is now dead.

Steps to reproduce the behavior

Launch a battle between a ninja and a mercenary

pjd79 commented 5 years ago

Fixed in DrugWars fight simulator v0.0.56 .