mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-26 05:14:32 -04:00
Fix amphibious promotion (#7070)
This commit is contained in:
parent
868e551ba9
commit
97b2b56956
@ -112,10 +112,8 @@ object BattleDamage {
|
|||||||
if (attacker is MapUnitCombatant) {
|
if (attacker is MapUnitCombatant) {
|
||||||
modifiers.add(getTileSpecificModifiers(attacker, defender.getTile()))
|
modifiers.add(getTileSpecificModifiers(attacker, defender.getTile()))
|
||||||
|
|
||||||
// Depreciated Version
|
if (attacker.unit.isEmbarked()
|
||||||
if (attacker.unit.isEmbarked() && !attacker.unit.hasUnique(UniqueType.AttackFromSea))
|
&& !(attacker.unit.hasUnique(UniqueType.AttackAcrossCoast)) || attacker.unit.hasUnique(UniqueType.AttackFromSea))
|
||||||
modifiers["Landing"] = -50
|
|
||||||
if (attacker.unit.isEmbarked() && !attacker.unit.hasUnique(UniqueType.AttackAcrossCoast))
|
|
||||||
modifiers["Landing"] = -50
|
modifiers["Landing"] = -50
|
||||||
|
|
||||||
// Land Melee Unit attacking to Water
|
// Land Melee Unit attacking to Water
|
||||||
|
Loading…
x
Reference in New Issue
Block a user