View Single Post
Old 08-29-2008, 08:37 PM   #35
gekko
User
 
gekko's Avatar
 
Join Date: Nov 2007
Posts: 129

Submissions (1)

gekko will become famous soon enough (33)gekko will become famous soon enough (33)

Default

Also found a weird one:

UnitRemoveAbility seems to unset GetSpellAbilityUnit().

I tried this:

Collapse JASS:
call UnitRemoveAbility(GetSpellAbilityUnit(),'A001')
call UnitAddAbility(GetSpellAbilityUnit(),'A002')

'A002' was never added. I tried several things, but then, after saving GetSpellAbilityUnit() in a local variable all worked fine! I haven't tested further, what GetSpellAbilityUnit() points to after a call of UnitRemoveAbility, but it was not the same unit as before.
gekko is offline   Reply With Quote