Doesnt take healtha way when user wins

This commit is contained in:
KahootChampion
2019-04-07 10:52:42 -06:00
parent cb4e13b888
commit 5a77f8c4e8

View File

@@ -187,7 +187,7 @@ public class ShipWarfareGUI extends Player {
} else { } else {
if (logic.getNumOfLittyShips() > 0) { if (logic.getNumOfLittyShips() > 0) {
int HPTaken = randomValue.nextInt(10) + 1; int HPTaken = randomValue.nextInt(10) + 1;
setHP(getHP() - (HPTaken)); super.setHP(super.getHP() - (HPTaken));
} }