Skip to content

Commit

Permalink
min 1 hp for shadow clone (#1220)
Browse files Browse the repository at this point in the history
  • Loading branch information
sylvainpolletvillard authored Nov 10, 2023
1 parent fa2314d commit fae6662
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/core/abilities/abilities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1704,7 +1704,7 @@ export class ShadowCloneStrategy extends AbilityStrategy {
farthestCoordinate.y,
pokemon.team
)
clone.hp = Math.ceil(0.8 * pokemon.hp)
clone.hp = min(1)(Math.ceil(0.8 * pokemon.hp))
clone.life = clone.hp
clone.addShield(30, clone, true)
clone.isClone = true
Expand Down

0 comments on commit fae6662

Please sign in to comment.