1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-29 00:41:38 +02:00
* dead stacks won't be also shaded as possible targets
This commit is contained in:
Michał W. Urbańczyk
2012-02-22 14:31:53 +00:00
parent e18419f5d2
commit d9a78ff1ce
2 changed files with 3 additions and 2 deletions

View File

@ -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;