adapap / OWScript

Python-like scripting language which transpiles into Overwatch Workshop script rulesets.
MIT License
37 stars 2 forks source link

Fix target not being read when accessing an array element #35

Closed netux closed 4 years ago

netux commented 4 years ago

I was so focused on fixing the syntax error that I completely forgot to check if targets worked.

This fixes

pvar array@Cur Elem[0]

becoming

Value In Array(Value In Array(Player Variable(Event Player, A), 0), 0)

instead of

Value In Array(Value In Array(Player Variable(Current Array Element, A), 0), 0)