瀏覽代碼

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

OnionKnight 16 年之前
父節點
當前提交
2b44cd35b6
共有 1 個文件被更改,包括 1 次插入0 次删除
  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()  )
 			{