Merge pull request #1907 from MaruMaruOO/patch-1
Additional fix for #1902
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user