1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-17 01:32:21 +02:00
- 0.72d #27
- 0.73 #13
This commit is contained in:
mateuszb
2009-08-07 09:45:21 +00:00
parent 3d93e0acf0
commit 9d531b0d84
5 changed files with 21 additions and 21 deletions

View File

@ -411,6 +411,9 @@ std::vector<int> BattleInfo::getAccessibility(int stackID, bool addOccupiable)
bool BattleInfo::isStackBlocked(int ID)
{
CStack *our = getStack(ID);
if(our->hasFeatureOfType(StackFeature::SIEGE_WEAPON)) //siege weapons cannot be blocked
return true;
for(unsigned int i=0; i<stacks.size();i++)
{
if( !stacks[i]->alive()