Doesnt take healtha way when user wins
This commit is contained in:
@@ -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));
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user