فهرست منبع

* fixed #871
* dead stacks won't be also shaded as possible targets

Michał W. Urbańczyk 13 سال پیش
والد
کامیت
d9a78ff1ce
2فایلهای تغییر یافته به همراه3 افزوده شده و 2 حذف شده
  1. 2 1
      client/BattleInterface/CBattleInterface.cpp
  2. 1 1
      lib/BattleState.cpp

+ 2 - 1
client/BattleInterface/CBattleInterface.cpp

@@ -2919,7 +2919,8 @@ void CBattleInterface::endAction(const BattleAction* action)
 
 	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);
 }
 

+ 1 - 1
lib/BattleState.cpp

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