You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Originally posted by zimri-leisher July 28, 2021
I'm relatively new to this library but I think I may have found a small issue: in the TargetUnitCommandEvent class definition, there is a field called target_unit that apparently stores a reference to the unit being targeted. However, in the ContextLoader class, in the handleTargetUnitCommandEvent method, it puts a reference to the target unit into the target field. This caused a small issue for me before I figured it out, and I know it's not a big deal, but I figured I'd better post here.
The text was updated successfully, but these errors were encountered:
and I presume that most people are using target, I think probably the right fix is to change the class definition to declare target not target_unit. What do others think?
@zimri-leisher Can you open a pull request updating that?
Discussed in #147
Originally posted by zimri-leisher July 28, 2021
I'm relatively new to this library but I think I may have found a small issue: in the
TargetUnitCommandEvent
class definition, there is a field calledtarget_unit
that apparently stores a reference to the unit being targeted. However, in theContextLoader
class, in thehandleTargetUnitCommandEvent
method, it puts a reference to the target unit into thetarget
field. This caused a small issue for me before I figured it out, and I know it's not a big deal, but I figured I'd better post here.The text was updated successfully, but these errors were encountered: