mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-29 00:41:38 +02:00
@ -344,7 +344,7 @@ std::vector<BattleHex> BattleInfo::getAccessibility( const CStack * stack, bool
|
||||
};
|
||||
BOOST_FOREACH(const CStack * otherSt, stacks)
|
||||
{
|
||||
if(otherSt->owner == stack->owner)
|
||||
if(otherSt->owner == stack->owner || !otherSt->isValidTarget(false))
|
||||
continue;
|
||||
|
||||
std::vector<BattleHex> occupiedBySecond;
|
||||
|
Reference in New Issue
Block a user