ItsDeltin / Overwatch-Script-To-Workshop

Converts scripts to Overwatch workshops.
208 stars 24 forks source link

Syntax error when using "Team." In rule definition #143

Closed sarami77 closed 4 years ago

sarami77 commented 4 years ago

When using "Team." In the rule definition in the VScode editor, WorkShopCode outputs an "Error not an expected enum" and no code is generated.

This problem occurs with the following combinations: [OSTW v1.3]   -Deltinteger_v1.3   -overwatch-script-to-workshop-1.4.0.vsix

It has been confirmed that it does not occur in the following combinations.   [OSTW v1.2]   -Deltinteger_v1.2.2   -overwatch-script-to-workshop-1.3.0.vsix

I don't think there is a change in the Team syntax specification. Is it a bug? This may be the effect of the #121 fix. If necessary, we can provide more information needed for the investigation.

Thank you for your work.

sarami77 commented 4 years ago

I attach a snapshot when the problem occurred snapshot

ItsDeltin commented 4 years ago

A workaround for now would be to add if (TeamOf(EventPlayer()) == Team.Team1/2) as a condition.

sarami77 commented 4 years ago

thank for your reply. I'll give it a try.

ItsDeltin commented 4 years ago

Fixed in v1.4.