Merge pull request #1907 from MaruMaruOO/patch-1

Additional fix for #1902
This commit is contained in:
Anton Vorobyov
2019-03-31 11:53:51 +03:00
committed by GitHub

View File

@@ -140,12 +140,18 @@ class Effect(EqBase):
Whether this effect is implemented in code or not,
unimplemented effects simply do nothing at all when run
"""
if not self.__generated:
self.__generateHandler()
return self.__effectDef is not None
def isType(self, type):
"""
Check if this effect is of the passed type
"""
if not self.__generated:
self.__generateHandler()
return self.type is not None and type in self.type
def __generateHandler(self):