1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00
This commit is contained in:
AlexVinS
2016-09-29 23:14:22 +03:00
parent 9097ffbd8a
commit 72461c5c2e
4 changed files with 20 additions and 4 deletions

View File

@@ -5726,7 +5726,7 @@ void CGameHandler::runBattle()
continue;
}
const CGHeroInstance * curOwner = gs->curB->battleGetOwnerHero(next);
const CGHeroInstance * curOwner = battleGetOwnerHero(next);
if( (next->position < 0 || next->getCreature()->idNumber == CreatureID::BALLISTA) //arrow turret or ballista
&& (!curOwner || curOwner->getSecSkillLevel(SecondarySkill::ARTILLERY) == 0)) //hero has no artillery