Thanks ☺️
Yeah there are a lot of bugs. And some of them are result of another hidden bugs I believe. The code is really a mess.
Oh, nice idea to increase damage by giving another sword to the same unit 🤔
I surprised no one catched a funny bug that you can give weapon to an enemy 😅 Because in the code this is the same object with almost the same behavior. The only difference is a int Team variable.
If unitA.Team != unitB.Team they see each other as enemies.
But mechanic of giving a sword doesn't care for that variable. So you can just give weapons for both sides 😅