You could make the sniper's range upgradeable, by some upgrade, and make that upgrade DECREASE its range. Just set the upgrade's level to 1 when you want to reduce the range, and to 0 when you want to insrease it.
Or you could make the upgrade GIVE range instead, and keep its level high when you need more range, and reduce the lvl when you need lower range.
Has a large impact on loading time so is not really practical.1, infinite* upgrades.
Create 2 upgrades, one to increase range, one to lower range.
Then you can upgrade them lineary to increase and decrease at will... with the limit of their levels.
So if you give both upgrades 100 levels, your hero can use this spell 100 times.
That is the closest one can get to changing attack range dynamically. I still would recommend considering another ability or mechanic for the unit which is better supported by the game.I recommend the second method.
Has a large impact on loading time so is not really practical.
That is the closest one can get to changing attack range dynamically. I still would recommend considering another ability or mechanic for the unit which is better supported by the game.