@@ -537,10 +537,7 @@ def parse_ability_event(self, buffer, frames, type, code, pid):
537537 if atype & 0x20 : # command card
538538 return self .command_card (buffer , frames , type , code , pid , flag , atype )
539539 elif atype & 0x40 : # location/move
540- if flag == 0x08 :
541- return self .right_click_move (buffer , frames , type , code , pid , flag , atype )
542- elif flag in (0x04 ,0x05 ,0x07 ):
543- return self .location_move (buffer , frames , type , code , pid , flag , atype )
540+ return self .right_click_move (buffer , frames , type , code , pid , flag , atype )
544541 elif atype & 0x80 : # right-click on target?
545542 return self .right_click_target (buffer , frames , type , code , pid , flag , atype )
546543
@@ -579,18 +576,6 @@ def command_card(self, buffer, frames, type, code, pid, flag, atype):
579576 else :
580577 return AbilityEvent (frames ,pid ,type ,code ,ability )
581578
582- def location_move (self , buffer , frames , type , code , pid , flag , atype ):
583- ability = buffer .read_short (endian = BIG_ENDIAN )
584- ability = ability << 8 | buffer .read_byte ()
585- if ability & 0x20 :
586- buffer .read_hex (9 )
587- elif ability & 0x40 :
588- buffer .read_hex (18 )
589- else :
590- pass
591-
592- return UnknownLocationAbilityEvent (frames , pid , type , code , ability )
593-
594579 def right_click_target (self , buffer , frames , type , code , pid , flag , atype ):
595580 # ability (2), object id (4), object type (2), ?? (10)
596581 ability = buffer .read_short (endian = BIG_ENDIAN )
0 commit comments