Hello, in my map all players have one hero each. The heroes attacks are both disabled. Attack 1 is melee, attack 2 is ranged. When a hero picks up a weapon (let's say a sword) a unit orb ability representing that sword is added to the hero enabling it's attack 1 (melee). If he picks up a bow he receives a unit orb ability for that bow enabling his attack 2 (ranged). The projectiles is replaced via the orb as well so it can be different ones depending on what bow your equipping. (This was a tip for everyone else, if you would like to do somewhat the same sometime.)
Now to the problem, when my hero equips a bow, he can shoot at ranged distance, just like he should. But if he equips a sword, even though that orb ability is to unlock attack 1, he becomes ranged anyway. I tried using "enabled attack index: 0" but then he couldn't attack at all.
Why does "enabled attack index: 1" enable the second one?
Now to the problem, when my hero equips a bow, he can shoot at ranged distance, just like he should. But if he equips a sword, even though that orb ability is to unlock attack 1, he becomes ranged anyway. I tried using "enabled attack index: 0" but then he couldn't attack at all.
Why does "enabled attack index: 1" enable the second one?