mirror of
				https://github.com/vcmi/vcmi.git
				synced 2025-10-31 00:07:39 +02:00 
			
		
		
		
	Fix AI spellcasting
This commit is contained in:
		| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user