Im encountering another problem
Basically, when a player controls a certain building, i want to give them a buff, such as a passive 5% damage bonus for all units. First I created a custom spell (a modified command aura that gives 5% damage bonus).
I want it to work like this -
1. A player controls Certain Building
2. Once they control it all their units get the 5% damage bonus.
3. If another player takes control of that unit they get the 5% bonus, and the player that previously had the bonus loses it.
This is what I was able to come up with, and it sucks lol. In this case, the building is Mount Kilimanjaro.
Also the "Kilomanjaro Bonus" is the spell that adds 5% damage bonus"
Basically, when a player controls a certain building, i want to give them a buff, such as a passive 5% damage bonus for all units. First I created a custom spell (a modified command aura that gives 5% damage bonus).
I want it to work like this -
1. A player controls Certain Building
2. Once they control it all their units get the 5% damage bonus.
3. If another player takes control of that unit they get the 5% bonus, and the player that previously had the bonus loses it.
This is what I was able to come up with, and it sucks lol. In this case, the building is Mount Kilimanjaro.
Code:
Kilimanjaro Bonus
Events
Conditions
(Owner of Mount Kilimanjaro Control 0011 <gen>) Equal to Player 1 (Red)
Actions
Player - Enable Kilomanjaro Bonus for Player 1 (Red)
Also the "Kilomanjaro Bonus" is the spell that adds 5% damage bonus"