1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-09-16 09:26:28 +02:00

Intoduce PASSIVE_CASTING mode for opening battle spells

* now at least one "caster" object is present
This commit is contained in:
AlexVinS
2015-09-17 03:43:31 +03:00
parent 6010bbe7ba
commit 10318a3da3
5 changed files with 24 additions and 16 deletions

View File

@@ -5290,8 +5290,8 @@ void CGameHandler::runBattle()
parameters.destination = BattleHex::INVALID;
parameters.casterSide = i;
parameters.casterColor = h->tempOwner;
parameters.casterHero = nullptr;
parameters.mode = ECastingMode::HERO_CASTING;
parameters.casterHero = h;
parameters.mode = ECastingMode::PASSIVE_CASTING;
parameters.casterStack = nullptr;
parameters.selectedStack = nullptr;