Hi everyone! Currently I'm struggling with two issues, hope someone can give me some directions here.
First problem relates to the Angmar Wolves. I wanted to give them a heavier punch than usual, so I figured to give them a radial weapon (to each wolf in the pack). However, I also wanted that this radius also affected the allies, that is to say, each wolf attack would damage both allies and enemies, except from wolves within the pack. Then, I wanted to upgrade the weapon of the wolves via the spiked collars upgrade so that they could only damage enemies once upgraded. I thought this would be easy, but somehow my code isn't working, I don't know what I'm missing, but when I first tested it it worked, but the following playthroughs it didn't. It does have the AoE damage on enemies, but it won't hurt allies.
Here's the weapon code:
The other problem I have is something I don't have high hopes to know the answer of, but might as well ask. Sometimes when I'm playing the CP drops until it hit zero and then, the limit dissapears (i.e., I may have 250/1000 then 250/800 then 250/300 then 250/0 and finally just 250. Suffice to say that, when this happens I can't build more units. Even worse, if I build farms, the CP won't be affected, it stays gone. Definitely the worst part is that is near impossible to track what triggers this issue, as it as random as it gets. The most I can figure out is that this happens after I buy one hero I made, however, his abilities does not affect CPs in any way, shape, or form. So I restrain to build him, but then again, I'm not sure if he is the one that makes this issue happen or if it is just a coincidence.
If anyone can help me with either of these issues, I'll appreciate it.