1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

Fix build

This commit is contained in:
Ivan Savenko 2024-08-18 20:59:32 +00:00
parent 49412579b4
commit 4ba2b95983

View File

@ -763,7 +763,7 @@ void BattleFlowProcessor::stackTurnTrigger(const CBattleInfoCallback & battle, c
auto &levelInfo = spell->getLevelInfo(bonus->val);
bool isDamageSpell = spell->isDamage() || spell->isOffensive();
if (!isDamageSpell || levelInfo.smartTarget || levelInfo.range != "X")
if (!isDamageSpell || levelInfo.smartTarget || !levelInfo.range.empty())
{
parameters.massive = true;
parameters.smart = true;