platyping
Sleeping Dragon
Why will there be 500 unless you have 500 unit types affected.
A more ugly but still simple way.
Use getUpgradePriceOverride to change the upgrade price to 9 million.
No one will have that amount of $ to upgrade
The only thing that triggers on upgrade is onUnitCreated, and that will not help you at all.
Lastly, canUpgradeAnywhere this is your last chance, but I confirmed with The_J that it is totally useless function that is most likely a leftover unused code.
A more ugly but still simple way.
Use getUpgradePriceOverride to change the upgrade price to 9 million.
No one will have that amount of $ to upgrade
The only thing that triggers on upgrade is onUnitCreated, and that will not help you at all.
Lastly, canUpgradeAnywhere this is your last chance, but I confirmed with The_J that it is totally useless function that is most likely a leftover unused code.