Ver Fonte

Shooters with attack twice no longer attacks twice melee. (This assumes shooters would never be able to attack twice in melee)

OnionKnight há 16 anos atrás
pai
commit
2b44cd35b6
1 ficheiros alterados com 1 adições e 0 exclusões
  1. 1 0
      server/CGameHandler.cpp

+ 1 - 0
server/CGameHandler.cpp

@@ -2371,6 +2371,7 @@ bool CGameHandler::makeBattleAction( BattleAction &ba )
 
 			//second attack
 			if(curStack->valOfFeatures(StackFeature::ADDITIONAL_ATTACK) > 0
+				&& !curStack->hasFeatureOfType(StackFeature::SHOOTER)
 				&& curStack->alive()
 				&& stackAtEnd->alive()  )
 			{