mirror of
https://github.com/yairm210/Unciv.git
synced 2025-02-11 11:28:03 +07:00
Embarking penalty logic fix (#6181)
* Fox naval unit Landind penalty is for attacking on to land * Only Land unit should have Boarding penalty * Unbreak logic Co-authored-by: itanasi <spellman23@gmail.com>
This commit is contained in:
parent
82236fe2c8
commit
4e338ae4f3
@ -136,7 +136,7 @@ object BattleDamage {
|
||||
modifiers["Landing"] = -50
|
||||
|
||||
// Land Melee Unit attacking to Water
|
||||
if (!attacker.unit.isEmbarked() && attacker.isMelee() && defender.getTile().isWater
|
||||
if (attacker.unit.type.isLandUnit() && !attacker.unit.isEmbarked() && attacker.isMelee() && defender.getTile().isWater
|
||||
&& !attacker.unit.hasUnique(UniqueType.AttackAcrossCoast))
|
||||
modifiers["Boarding"] = -50
|
||||
// Naval Unit Melee attacking to Land (not City) unit
|
||||
|
Loading…
Reference in New Issue
Block a user