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:
parent
68e3948242
commit
f84e5cf8b3
@ -5436,6 +5436,16 @@ void CGameHandler::runBattle()
|
||||
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)
|
||||
{
|
||||
TStacks possibleStacks = battleGetStacksIf([&](const CStack * s){
|
||||
|
Loading…
Reference in New Issue
Block a user