btw, on the config, does the damage also scale with level? if yes, I think you should say so in comments too...
also,
Divide the given agility by the DamagePercent to get the damage dealt to the sorrounding melee units
--> Isn't percentage normally used as a multiplier? If this uses divide, I just find the name quite misleading...
BTW, I think you forgot to use DamagePercent on your formula... from the looks of it, you used 4 directly in your formula instead of the variable...
Also, I don't see the point of the Agileindex_max_size variable... Personally, I find the use of the Agileindex array pretty useless...
-
Set Agileindex[Agileindex_size] = Agileindex_size
You set a variable in an array to be the same values as it's index, so why bother saving it into the array?
-
AgileInteger = Agileindex[Agileindex_size]
that is no different than this
-
AgileInteger = Agileindex_size
Also, you can also just use Agileindex_size directly on your casting trigger since the cast process is "instant" anyway... though you can maintain the AgileInteger for protection... but the array for the index is seriously just an overprocessing...