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:
parent
0ac8430b11
commit
4b03206b8a
@ -2614,7 +2614,7 @@ std::pair<ui32, ui32> BattleInfo::calculateDmgRange( const CStack* attacker, con
|
|||||||
};
|
};
|
||||||
|
|
||||||
//wall / distance penalty + advanced air shield
|
//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) ||
|
hasDistancePenalty(attacker->ID, defender->position) || hasWallPenalty(attacker->ID, defender->position) ||
|
||||||
HLP::hasAdvancedAirShield(defender) )
|
HLP::hasAdvancedAirShield(defender) )
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user