- Joined
- Jul 10, 2007
- Messages
- 6,306
It's not fixed
I still see that and Table. You should be using GetUnitUserData.
edit
You should also store data for only indexed units, so you'll have to actually show a unit indexer as a requirement and have an IsUnitIndexed check ; ). You should ignore all units that aren't indexed, treat them as null.
JASS:
set myTab[0].real[GetHandleId(lastCastAbilityUnit)] = lastCastAbilityX
set myTab[1].real[GetHandleId(lastCastAbilityUnit)] = lastCastAbilityY
set myTab[2][GetHandleId(lastCastAbilityUnit)] = lastCastAbility
set myTab[3].unit[GetHandleId(lastCastAbilityUnit)] = lastCastAbilityTarget
I still see that and Table. You should be using GetUnitUserData.
edit
You should also store data for only indexed units, so you'll have to actually show a unit indexer as a requirement and have an IsUnitIndexed check ; ). You should ignore all units that aren't indexed, treat them as null.