Skip to content

Commit 38b7c78

Browse files
committed
Added get_ability method
1 parent 2ec1d70 commit 38b7c78

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

sc2reader/data.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,10 @@ class GameObject(object):
126126
@classmethod
127127
def get_type(cls, code):
128128
return OBJECTTYPE_CODES[code]
129+
130+
@classmethod
131+
def get_ability(cls, code):
132+
return ABILITIES[code]
129133

130134
@classmethod
131135
def has_type(cls, code):

0 commit comments

Comments
 (0)