Fixed more bugs I introduced myself (#4368)

* Fix bug where mobility doesn't work

* Fixed supply _still_ not working
This commit is contained in:
Xander Lenstra 2021-07-04 16:34:27 +02:00 committed by GitHub
parent be5345477a
commit 2a4ca74e7b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -432,7 +432,7 @@
"name": "Mobility",
"prerequisites": ["Shock II","Drill II","Targeting I",
"Bombardment I","Boarding Party I", "Coastal Raider I", "Wolfpack I"],
"effect": "+[1] Movement",
"effect": "[+1] Movement",
"unitTypes": ["Mounted","WaterMelee","WaterRanged","Armor","WaterSubmarine"]
},
{

View File

@ -564,7 +564,7 @@ class MapUnit {
if (mayHeal) {
for (unique in getMatchingUniques("[] HP when healing in [] tiles")) {
if (tileInfo.matchesFilter(unique.params[1])) {
if (tileInfo.matchesFilter(unique.params[1], civInfo)) {
healing += unique.params[0].toInt()
}
}