Browse Source

Fix http://bugs.vcmi.eu/view.php?id=2422

AlexVinS 9 years ago
parent
commit
b634482bb0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/spells/BattleSpellMechanics.cpp

+ 1 - 1
lib/spells/BattleSpellMechanics.cpp

@@ -430,7 +430,7 @@ void ObstacleMechanics::applyBattleEffects(const SpellCastEnvironment * env, con
 			for(int i = 0; i < GameConstants::BFIELD_SIZE; i += 1)
 			{
 				BattleHex hex = i;
-				if(hex.getX() > 2 && hex.getX() < 14 && !(parameters.cb->battleGetStackByPos(hex, false)) && !(parameters.cb->battleGetObstacleOnPos(hex, false)))
+				if(!(parameters.cb->battleGetStackByPos(hex, false)) && !(parameters.cb->battleGetObstacleOnPos(hex, false)))
 					availableTiles.push_back(hex);
 			}
 			boost::range::random_shuffle(availableTiles);