From d2cf26e95096ec1c1119325c5db55bfc53188f84 Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Wed, 22 Apr 2020 15:03:09 +0200 Subject: [PATCH] Fixed issue where attack with 1 use remaining couldn't be used. --- src/Battling/Models/Battle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Battling/Models/Battle.cpp b/src/Battling/Models/Battle.cpp index 1a6f8c4..4c56bf4 100644 --- a/src/Battling/Models/Battle.cpp +++ b/src/Battling/Models/Battle.cpp @@ -13,7 +13,7 @@ bool Battle::CanUse(const BaseTurnChoice* choice) { AssertNotNull(choice) if (choice->GetKind() == TurnChoiceKind::Attack) { // HOOK: change number of uses needed. - return dynamic_cast(choice)->GetAttack()->GetRemainingUses() > 1; + return dynamic_cast(choice)->GetAttack()->GetRemainingUses() >= 1; } return true; }