Skip to content

Commit

Permalink
Merge pull request liyunfan1223#366 from pilovm/308-fix-multiple-spel…
Browse files Browse the repository at this point in the history
…l-cast-attempts

Does not reassign castCount so it being casted only once
  • Loading branch information
liyunfan1223 authored Jul 22, 2024
2 parents 15e760d + b61690c commit 467633a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/strategy/actions/CastCustomSpellAction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit 467633a

Please sign in to comment.