get units by GroupEnumUnitsInRange does not match ability affect area?

Status
Not open for further replies.
Level 3
Joined
Oct 9, 2012
Messages
28
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:
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
 
Status
Not open for further replies.
Back
Top