Skip to content

Commit

Permalink
Fix the calculation of a critical max move
Browse files Browse the repository at this point in the history
Assign the isCrit attribute of the original move to the max move.Otherwise, the 'Crit' button would be ineffective when the move is a max move.Hope this helps.
Mentioned in jake-white#101
  • Loading branch information
PokeMon3tr committed Jan 14, 2020
1 parent 5f1bdcb commit ebf3e37
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions script_res/damage.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ function GET_DAMAGE_SM(attacker, defender, move, field) {
moveDescName = MAXMOVES_LOOKUP[move.type] + " (" + move.bp + " BP)";
move.category = tempMove.category;
move.isMax = true;
move.isCrit = tempMove.isCrit;
if(attacker.item == "Choice Band" || attacker.item == "Choice Specs" || attacker.item == "Choice Scarf") {
attacker.item = "";
}
Expand Down

0 comments on commit ebf3e37

Please sign in to comment.