PTR bug? Secure GetShapeshiftForm() and _onstate
I'm experiencing something strange on the PTR with states and GetShapeshiftForm().
I'm using a state header and and registering something like this: Lua Code:
So, there's something broken with GetShapeshiftForm() (the secure version at least) on PTR, isn't it? Could someone please confirm that this is not the desired behavior? [e] Switching directly from one form to another without taking the long way via normal form does produce totally weird and unpredictable results. The state doesn't even trigger at all. Except when switching from whatever to form:3 - where state a and b Trigger both. oO [e] Same with Priest and Shadowform. Warrior returns always 1 - no matter what stance. |
You can do this and use newstate to tell you what form you're in.
Lua Code:
Switching directly between forms wouldn't do anything with your example because [form:1/2/3/4] is still true, so the state doesn't change except when your character registers as being out of form in between shifts. Macro conditions are only evaluated every 0.5 seconds or something, so you'll have ambiguous results. |
Quote:
Quote:
On PTR it seems to be bear>cat ... skipping the intermediate step to normal form. :/ |
Quote:
GetShapeshiftForm(true) ist der korrekte Befehl. |
Quote:
Quote:
What a weird hack. But at least it's working now. :D |
Quote:
(Nur zur zusätzlichen Info ;) ) Du solltest hier prüfen, ob das Event UPDATE_SHAPESHIFT_FORM vor oder nach dem SecureHandler triggered. Bezüglich Krieger: Das stance-Argument funktioniert trotzdem noch. Den SecureStateDriver solltest du am besten immer so benutzen, wie in semlar's Beispiel. Spart dir einiges an Kopfzerbrechen. |
All times are GMT -6. The time now is 07:42 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI