Forráskód Böngészése

* bow of sharpshooter

mateuszb 15 éve
szülő
commit
4b03206b8a
1 módosított fájl, 1 hozzáadás és 1 törlés
  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) )
 		)