I have a problem on giving/removing a requirement to Charge Gold and Lumber.
I have 1 upgrade called "Counter +1" that costs 3g and has the requirement to have the dummy unit "Upgrade - Counter Maxed" alive (the dummy unit is created at map init).
Player is an player array variable with values Player 1~12 on indexes 1~12.
The Charge Gold and Lumber is used by a unit called "Upgrade".
The spell is supposed to be only usable 100 times (having Counter Bonus at Lv100), then it removes the dummy unit however the ability Charge Gold and Lumber stills usable.
How to remove the requirement for Charge Gold and Lumber so it is not castable anymore after a certain point using a dummy unit requirement?