Closed QbdqmQ closed 11 months ago
Looks like it's working, can you provide the mod where it fails?
Enlightenment.zip @yairm210 China(Qin) Unique Ability in error
:rofl: I get...
With the replace(unique
->it
) quiggfiggs:
With the replace(
unique
->it
) quiggfiggs
Took me too long to understand the issue here... wouldn't this be a name shadowed warning?
No, no new names thus no new shadowing. In the innermost any {}
, unique
means ""Free [Warrior] appears", while it
means "<upon gaining a [Spearman] unit>" - and you should check the unit you built against the parameters of the conditional, not against the reward...
unique
means
No, no. I know that much. I'd need to check (was too busy today) but since the "Free [unit] appears" is already named "unique", it'll whine about shadowed names it you do unique -> it
. Hell, that's not even necessary because you can just do unit.matchesFilter(it.params[0])
That's what I meant: replace unique
with it
once. the "->" was not within the backtick code quotes, sorry.
Platform Win10 (64bit)
Version 4.8.17
To Reproduce "Free [Warrior] appears <upon gaining a [Spearman] unit>"
Screenshots