StevensSEC / pokemonbattlelib

A portable library for accurately simulating Pokemon battles.
GNU General Public License v3.0
13 stars 2 forks source link

drain/recoil should be calculated using damage actually dealt to the pokemon, not the damage transaction's value. #377

Open dyc3 opened 3 years ago

dyc3 commented 3 years ago

Current Behavior

A clear and concise description of what the bug is.

Example: image

255 damage is too much recoil, because the scizor only had 59 hp remaining. It should have done like ~87 recoil damage.