Skip to content

Commit

Permalink
Fixed Vulnerable and Weakness again
Browse files Browse the repository at this point in the history
  • Loading branch information
Smujb committed Jun 15, 2020
1 parent 3d811dc commit 5ea6c6d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public class Vulnerable extends FlavourBuff {
}

public float defenseFactor() {
return (float) Math.min(0.5f, Math.pow( 0.99, cooldown()));
return (float) Math.max(0.5f, Math.pow( 0.99, cooldown()));
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public class Weakness extends FlavourBuff {
}

public float damageFactor() {
return (float) Math.min(0.5f, Math.pow( 0.99, cooldown()));
return (float) Math.max(0.5f, Math.pow( 0.99, cooldown()));
}

@Override
Expand Down

0 comments on commit 5ea6c6d

Please sign in to comment.