We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b042200 commit 102d673Copy full SHA for 102d673
sc2reader/objects.py
@@ -244,12 +244,13 @@ def apply(self):
244
if self.ability not in ABILITIES:
245
print "Unknown ability (%s) in frame %s" % (hex(self.ability),self.frame)
246
#raise ValueError("Unknown ability (%s)" % (hex(self.ability)),)
247
- ability = ABILITIES[self.ability]
248
- able = self.get_able_selection(ability)
249
- if able:
250
- object = able[0]
251
- ability = getattr(object, ability)
252
- ability(self.frame)
+ else:
+ ability = ABILITIES[self.ability]
+ able = self.get_able_selection(ability)
+ if able:
+ object = able[0]
+ ability = getattr(object, ability)
253
+ ability(self.frame)
254
255
# claim units
256
for obj in self.player.get_selection().current:
0 commit comments