mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-09 23:39:40 +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:
@ -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
|
||||
|
Reference in New Issue
Block a user