A comment in Blizzard.j, ReplaceUnitBJ states that it's "sometimes unsafe to remove hidden units", as a workaround it calls KillUnit right before RemoveUnit.
ReplaceUnitBJ
KillUnit
RemoveUnit
TODO: Propagate this note to other functions that use hidden units.
Generated using TypeDoc
Note
A comment in Blizzard.j,
ReplaceUnitBJ
states that it's "sometimes unsafe to remove hidden units", as a workaround it callsKillUnit
right beforeRemoveUnit
.TODO: Propagate this note to other functions that use hidden units.