Doesnt take healtha way when user wins
This commit is contained in:
@@ -187,7 +187,7 @@ public class ShipWarfareGUI extends Player {
|
||||
} else {
|
||||
if (logic.getNumOfLittyShips() > 0) {
|
||||
int HPTaken = randomValue.nextInt(10) + 1;
|
||||
setHP(getHP() - (HPTaken));
|
||||
super.setHP(super.getHP() - (HPTaken));
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user