I'm making an AOE ability by using the channel ability.
In the ability setting GUI I set Area of Effect(aare) to 300, and in my JASS:
when I test in game, GroupEnumUnitsInRange doesn't get right number of units. It seems the 300 range by JASS code is a little bit smaller than the ability image covers when casting.
What's wrong with my code? How to fix?
Thanks
In the ability setting GUI I set Area of Effect(aare) to 300, and in my JASS:
Code:
local real x = GetSpellTargetX()
local real y...
call GroupEnumUnitsInRange(mygroup, x, y, 300, Filter(function myfun))
call BJDebugMsg(I2S(CountUnitsInGroup(mygroup)))
when I test in game, GroupEnumUnitsInRange doesn't get right number of units. It seems the 300 range by JASS code is a little bit smaller than the ability image covers when casting.
What's wrong with my code? How to fix?
Thanks