mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-27 13:55:54 -04:00
Fixed the unique for giving sight to units no longer working (#5760)
This commit is contained in:
parent
a46f638ef1
commit
40cb651433
@ -337,9 +337,13 @@ class MapUnit {
|
||||
return 1
|
||||
}
|
||||
|
||||
visibilityRange += getMatchingUniques(UniqueType.Sight, checkCivInfoUniques = true)
|
||||
visibilityRange += getMatchingUniques(UniqueType.Sight, conditionalState, checkCivInfoUniques = true)
|
||||
.sumOf { it.params[0].toInt() }
|
||||
|
||||
visibilityRange += getTile().getAllTerrains()
|
||||
.flatMap { it.getMatchingUniques(UniqueType.Sight, conditionalState) }
|
||||
.sumOf { it.params[0].toInt() }
|
||||
|
||||
if (visibilityRange < 1) visibilityRange = 1
|
||||
|
||||
return visibilityRange
|
||||
|
@ -227,7 +227,7 @@ enum class UniqueType(val text:String, vararg targets: UniqueTarget, val flags:
|
||||
|
||||
|
||||
Movement("[amount] Movement", UniqueTarget.Unit, UniqueTarget.Global),
|
||||
Sight("[amount] Sight", UniqueTarget.Unit, UniqueTarget.Global),
|
||||
Sight("[amount] Sight", UniqueTarget.Unit, UniqueTarget.Global, UniqueTarget.Terrain),
|
||||
SpreadReligionStrength("[amount]% Spread Religion Strength", UniqueTarget.Unit, UniqueTarget.Global),
|
||||
MayFoundReligion("May found a religion", UniqueTarget.Unit),
|
||||
MayEnhanceReligion("May enhance a religion", UniqueTarget.Unit),
|
||||
|
Loading…
x
Reference in New Issue
Block a user