- Joined
- Feb 27, 2019
- Messages
- 401
Hello,
"Storm Earth Fire" ability is the ability that splits the pandaren into 3 little pandas for a given duration. After some tests, I think that the ability works as follow:
Phase 1 - Hide the caster. It is hidden & unselectable, not-paused but somehow unmovable.
Phase 2 - Create 3 units (the 3 little pandas). They are hidden & unselectable.
Phase 3 - Create 3 missiles and animate them.
Phase 4 - At the end of animation, make the 3 little pandas visible.
Phase 5 - When the last panda dies or disapears, make the caster visible again.
Do you agree with that ?
Now the problem:
I am executing some piece of code at the end of phase 2 to modify the stats of the little pandas. The piece of code gets and modifies base armor (it's from a system I am currently coding). It unhides & hides the unit instantly for a little test.
It seems to bug: in phase 4, little pandas remain hidden. It seems that the hide unit functions* overrides the behavior of the ability. (*"Unit - Hide" in GUI, or ShowUnit/ShowUnitHide in JASS). If I remove this function, the spell works fine, so this is the culprit.
Is there another way to re-hide the unit without breaking the spell ?
Otherwise, is there a way to differenciate the 3 little pandas of any unit that would have been hidden by the GUI or JASS functions ?
"Storm Earth Fire" ability is the ability that splits the pandaren into 3 little pandas for a given duration. After some tests, I think that the ability works as follow:
Phase 1 - Hide the caster. It is hidden & unselectable, not-paused but somehow unmovable.
Phase 2 - Create 3 units (the 3 little pandas). They are hidden & unselectable.
Phase 3 - Create 3 missiles and animate them.
Phase 4 - At the end of animation, make the 3 little pandas visible.
Phase 5 - When the last panda dies or disapears, make the caster visible again.
Do you agree with that ?
Now the problem:
I am executing some piece of code at the end of phase 2 to modify the stats of the little pandas. The piece of code gets and modifies base armor (it's from a system I am currently coding). It unhides & hides the unit instantly for a little test.
It seems to bug: in phase 4, little pandas remain hidden. It seems that the hide unit functions* overrides the behavior of the ability. (*"Unit - Hide" in GUI, or ShowUnit/ShowUnitHide in JASS). If I remove this function, the spell works fine, so this is the culprit.
Is there another way to re-hide the unit without breaking the spell ?
Otherwise, is there a way to differenciate the 3 little pandas of any unit that would have been hidden by the GUI or JASS functions ?