let the healthbars get to 0
This commit is contained in:
parent
0d84a18f2e
commit
2b9755e7e7
|
@ -16,9 +16,15 @@ const app = Vue.createApp({
|
|||
},
|
||||
computed: {
|
||||
monsterBarStyles() {
|
||||
if (this.monsterHealth < 0) {
|
||||
return { width: "0%" };
|
||||
}
|
||||
return { width: this.monsterHealth + "%" };
|
||||
},
|
||||
playerBarStyles() {
|
||||
if (this.playerHealth < 0) {
|
||||
return { width: "0%" };
|
||||
}
|
||||
return { width: this.playerHealth + "%" };
|
||||
},
|
||||
specialAttackAllowed() {
|
||||
|
|
Reference in New Issue