Pārlūkot izejas kodu

Counterattack correction. Fixes bug #2501

Creatures should not be able to counterattack multiple times during one opponent attack under any circumstances.
Dydzio 8 gadi atpakaļ
vecāks
revīzija
86fe44d9ac
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      server/CGameHandler.cpp

+ 1 - 1
server/CGameHandler.cpp

@@ -3953,7 +3953,7 @@ bool CGameHandler::makeBattleAction(BattleAction &ba)
 				}
 				}
 
 
 				//counterattack
 				//counterattack
-				if (destinationStack
+				if (i == 0 && destinationStack
 					&& !stack->hasBonusOfType(Bonus::BLOCKS_RETALIATION)
 					&& !stack->hasBonusOfType(Bonus::BLOCKS_RETALIATION)
 					&& destinationStack->ableToRetaliate()
 					&& destinationStack->ableToRetaliate()
 					&& stack->alive()) //attacker may have died (fire shield)
 					&& stack->alive()) //attacker may have died (fire shield)