diff options
author | Daniel Weipert <code@drogueronin.de> | 2023-08-21 01:26:53 +0200 |
---|---|---|
committer | Daniel Weipert <code@drogueronin.de> | 2023-08-21 01:26:53 +0200 |
commit | ca093f0fb457a7037eb8a3acf3304e0646fa4278 (patch) | |
tree | 26e0e20b38a14ba4f7c3c9f33748fa68168863e9 /resources/js/classes/Monster.js | |
parent | 43a28ad77190f2e55e2e6ba65a9a7b5b1f5dea6c (diff) |
opponent counter attacks
Diffstat (limited to 'resources/js/classes/Monster.js')
-rw-r--r-- | resources/js/classes/Monster.js | 3 |
1 files changed, 3 insertions, 0 deletions
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); } |