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:
parent
9e58f67ab5
commit
58dd87d727
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user