1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-26 03:52:01 +02:00

* bow of sharpshooter

This commit is contained in:
mateuszb 2010-05-20 10:18:30 +00:00
parent 0ac8430b11
commit 4b03206b8a

View File

@ -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) )
)