From c03c7502252d02867b389f97b11be8ba4a0762c8 Mon Sep 17 00:00:00 2001 From: Andreas Zweili Date: Fri, 22 Jan 2021 20:40:40 +0100 Subject: [PATCH] reset the battle log on a new game --- prj-monster-01-starting-setup/app.js | 1 + 1 file changed, 1 insertion(+) diff --git a/prj-monster-01-starting-setup/app.js b/prj-monster-01-starting-setup/app.js index 9ca1ef6..3fbb0ac 100644 --- a/prj-monster-01-starting-setup/app.js +++ b/prj-monster-01-starting-setup/app.js @@ -74,6 +74,7 @@ const app = Vue.createApp({ this.monsterHealth = 100; this.winner = null; this.currentRound = 0; + this.battleLog = []; }, attackMonster() { this.currentRound++;