1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-28 08:48:48 +02:00

Fix AI spellcasting

This commit is contained in:
Ivan Savenko 2023-07-19 12:54:23 +03:00
parent 9e58f67ab5
commit 58dd87d727

View File

@ -766,7 +766,7 @@ void CBattleAI::attemptCastingSpell()
spellcast.setTarget(castToPerform.dest);
spellcast.side = side;
spellcast.stackNumber = (!side) ? -1 : -2;
cb->battleMakeUnitAction(spellcast);
cb->battleMakeSpellAction(spellcast);
movesSkippedByDefense = 0;
}
else