mirror of
https://github.com/vcmi/vcmi.git
synced 2025-03-25 21:38:59 +02:00
Fix FREE_SHOOTING bonus check (including war machines)
This commit is contained in:
parent
b33b880482
commit
2a16767cdc
@ -525,7 +525,7 @@ bool CUnitState::isCaster() const
|
||||
|
||||
bool CUnitState::canShootBlocked() const
|
||||
{
|
||||
return bonusCache.getBonusValue(UnitBonusValuesProxy::HAS_FREE_SHOOTING);
|
||||
return bonusCache.hasBonus(UnitBonusValuesProxy::HAS_FREE_SHOOTING);
|
||||
}
|
||||
|
||||
bool CUnitState::canShoot() const
|
||||
|
Loading…
x
Reference in New Issue
Block a user