HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Morphing, Cooldown Reset, Buff Removage

12-03-2006, 10:06 AM#1
BertTheJasser
This combination in the wrong order causes a bad bug, at least for one way morphing skills like Metamorphosis.

The bug appears when you use something like this:
Collapse JASS:
 call UnitResetCooldown(someunit)
 call UnitRemoveBuffs(someunit,true,true)
The actuall bug is, that your hero is still in the morped form, but when you cast the skill again, the hero will morph back in his original form, but costed mana!

The "fix" is very easy, just exchange the order of the functions, and everything works fine.
Collapse JASS:
 call UnitRemoveBuffs(someunit,true,true)
 call UnitResetCooldown(someunit)

That took me very long to figure out, I nearly desperated at that problem.
I hope this helps at least some guys, which have similar problems. I've redone my systems once,twice some even thrice, only to find that damn annoyance.
12-03-2006, 06:08 PM#2
Ryude
UnitResetCooldown has always worked a little weird for me. Maybe this is why, thanks.