mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-27 22:06:05 -04: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
|
modifiers["Landing"] = -50
|
||||||
|
|
||||||
// Land Melee Unit attacking to Water
|
// 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))
|
&& !attacker.unit.hasUnique(UniqueType.AttackAcrossCoast))
|
||||||
modifiers["Boarding"] = -50
|
modifiers["Boarding"] = -50
|
||||||
// Naval Unit Melee attacking to Land (not City) unit
|
// Naval Unit Melee attacking to Land (not City) unit
|
||||||
|
Loading…
x
Reference in New Issue
Block a user