mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-29 00:41:38 +02:00
@ -2919,7 +2919,8 @@ void CBattleInterface::endAction(const BattleAction* action)
|
|||||||
|
|
||||||
queue->update();
|
queue->update();
|
||||||
|
|
||||||
if(tacticsMode) //we have activated next stack after sending request that has been just realized -> blockmap due to movement has changed
|
if(tacticsMode //we have activated next stack after sending request that has been just realized -> blockmap due to movement has changed
|
||||||
|
|| action->actionType == BattleAction::HERO_SPELL)
|
||||||
redrawBackgroundWithHexes(activeStack);
|
redrawBackgroundWithHexes(activeStack);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -344,7 +344,7 @@ std::vector<BattleHex> BattleInfo::getAccessibility( const CStack * stack, bool
|
|||||||
};
|
};
|
||||||
BOOST_FOREACH(const CStack * otherSt, stacks)
|
BOOST_FOREACH(const CStack * otherSt, stacks)
|
||||||
{
|
{
|
||||||
if(otherSt->owner == stack->owner)
|
if(otherSt->owner == stack->owner || !otherSt->isValidTarget(false))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
std::vector<BattleHex> occupiedBySecond;
|
std::vector<BattleHex> occupiedBySecond;
|
||||||
|
Reference in New Issue
Block a user