From 91d048ef0f994446aaee91e3afcbd99788e439d7 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Fri, 18 Aug 2023 23:19:13 +0200 Subject: item effects,conditions --- resources/js/classes/Technique.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'resources/js/classes/Technique.js') diff --git a/resources/js/classes/Technique.js b/resources/js/classes/Technique.js index 7558748..39028be 100644 --- a/resources/js/classes/Technique.js +++ b/resources/js/classes/Technique.js @@ -44,12 +44,12 @@ class Technique { return DB.techniques[this.slug].recharge; } - isUsable () { + isRecharging () { if (this.turnLastUse >= Game.turn) { - return true; + return false; } - return Game.turn - this.turnLastUse >= this.rechargeLength; + return this.rechargeLength > Game.turn - this.turnLastUse; } use () { -- cgit v1.2.3