From ca093f0fb457a7037eb8a3acf3304e0646fa4278 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Mon, 21 Aug 2023 01:26:53 +0200 Subject: opponent counter attacks --- resources/js/classes/Monster.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'resources/js/classes/Monster.js') diff --git a/resources/js/classes/Monster.js b/resources/js/classes/Monster.js index 69bb654..84ea5da 100644 --- a/resources/js/classes/Monster.js +++ b/resources/js/classes/Monster.js @@ -112,6 +112,9 @@ class Monster { return translate(this.slug) || slugToName(this.slug); } + /** + * @returns {Object[]} + */ getLearnableTechniques () { return this.moveset.filter((move) => this.level >= move.level_learned); } -- cgit v1.2.3