From b61690ce7a526a1eb5c93668478bfefc75123970 Mon Sep 17 00:00:00 2001 From: Mikhail <5454720+pilovm@users.noreply.github.com> Date: Mon, 22 Jul 2024 11:17:36 +0200 Subject: [PATCH] Does not reassign castCount so it being casted only once --- src/strategy/actions/CastCustomSpellAction.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/strategy/actions/CastCustomSpellAction.cpp b/src/strategy/actions/CastCustomSpellAction.cpp index a3914ea3..deb65abb 100644 --- a/src/strategy/actions/CastCustomSpellAction.cpp +++ b/src/strategy/actions/CastCustomSpellAction.cpp @@ -74,8 +74,7 @@ bool CastCustomSpellAction::Execute(Event event) itemTarget = *items.begin(); else { - castCount = atoi(param.c_str()); - if (castCount > 0) + if (atoi(param.c_str()) > 0) text = text.substr(0, pos); } }