@@ -176,9 +176,7 @@ def load_context(self, replay):
176
176
for player in replay .players :
177
177
self .logger .error ("\t " + str (player ))
178
178
179
- #print [hex(key) for key in sorted(replay.datapack.abilities.keys())]
180
179
self .logger .error ("{0}\t {1}\t Missing ability {2} from {3}" .format (self .frame , self .player .name , hex (self .ability_code ), replay .datapack .__class__ .__name__ ))
181
- print "{0}\t {1}\t Missing ability {2} from {3}" .format (self .frame , self .player .name , hex (self .ability_code ), replay .datapack .id )
182
180
183
181
else :
184
182
self .ability = replay .datapack .abilities [self .ability_code ]
@@ -297,7 +295,7 @@ class SelectionEvent(PlayerActionEvent):
297
295
def __init__ (self , frame , pid , event_type , bank , objects , deselect ):
298
296
super (SelectionEvent , self ).__init__ (frame , pid , event_type )
299
297
self .bank = bank
300
- self .objects = objects
298
+ self .raw_objects = objects
301
299
self .deselect = deselect
302
300
303
301
def load_context (self , replay ):
@@ -308,7 +306,7 @@ def load_context(self, replay):
308
306
309
307
objects = list ()
310
308
data = replay .datapack
311
- for (obj_id , obj_type ) in self .objects :
309
+ for (obj_id , obj_type ) in self .raw_objects :
312
310
if (obj_id , obj_type ) in replay .objects :
313
311
obj = replay .objects [(obj_id ,obj_type )]
314
312
else :
0 commit comments