1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

When hero has ballistics and no target pass turn

This commit is contained in:
David Zéni 2015-08-26 20:54:24 +02:00
parent 68e3948242
commit f84e5cf8b3

View File

@ -5436,6 +5436,16 @@ void CGameHandler::runBattle()
continue; continue;
} }
if( next->getCreature()->idNumber == CreatureID::CATAPULT
&& curOwner && curOwner->getSecSkillLevel(SecondarySkill::BALLISTICS) > 0)
{
if(curB.getAttackableBattleHexes().empty())
{
makeStackDoNothing(next);
continue;
}
}
if(next->getCreature()->idNumber == CreatureID::FIRST_AID_TENT) if(next->getCreature()->idNumber == CreatureID::FIRST_AID_TENT)
{ {
TStacks possibleStacks = battleGetStacksIf([&](const CStack * s){ TStacks possibleStacks = battleGetStacksIf([&](const CStack * s){