Inflict damage on a unit outside of combat
-
Is this possible?
I tried this but it doesn't seem to work (doesn't throw an error either):<option name="repairsUnits" value="-1:Knight"/>
The above was added to a "pit" unit that acts as infrastructure and is supposed to damage a unit for 1 point...
-
@Michael-Hoover Try to see if -2 gives an error or not. Often -1 is used to mean infinite in options that do not accept negative values (horrible program hack).
I support the idea that this option should damage units if set negative.
-
@Cernel -2 doesn't throw an error either...
Guess I'll go make a feature request! -
This might be an issue to report, then. I tend to think something should either do something or give an error, if set to a value that cannot possibly mean doing nothing (which, in this case, would be 0).
-
When a unit checks for repair facilities, it always selects the one where it can get the highest amount of repair, which is technically 0, in this case.