mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-17 00:07:41 +02:00
moat bypass when no targets to attack
This commit is contained in:
@ -6117,7 +6117,8 @@ void CGameHandler::runBattle()
|
||||
|
||||
for(auto & elem : gs->curB->stacks)
|
||||
{
|
||||
if(elem->owner != next->owner
|
||||
if(elem->getCreature()->idNumber != CreatureID::CATAPULT
|
||||
&& elem->owner != next->owner
|
||||
&& elem->isValidTarget()
|
||||
&& gs->curB->battleCanShoot(next, elem->getPosition()))
|
||||
{
|
||||
|
Reference in New Issue
Block a user