Explorar o código

* bow of sharpshooter

mateuszb %!s(int64=15) %!d(string=hai) anos
pai
achega
4b03206b8a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lib/CGameState.cpp

+ 1 - 1
lib/CGameState.cpp

@@ -2614,7 +2614,7 @@ std::pair<ui32, ui32> BattleInfo::calculateDmgRange( const CStack* attacker, con
 	};
 
 	//wall / distance penalty + advanced air shield
-	if (shooting && (
+	if (shooting && !NBonus::hasOfType(attackerHero, Bonus::NO_SHOTING_PENALTY) && (
 		hasDistancePenalty(attacker->ID, defender->position) || hasWallPenalty(attacker->ID, defender->position) ||
 		HLP::hasAdvancedAirShield(defender) )
 		)