class ConditionalContinuousEffectStaticAbility(StaticAbility): def __init__ (self, condition, effect): from effects import ConditionalEffect self.effect = ConditionalEffect(condition, effect) def isActive(self, game, obj): return self.effect.isSelf() or game.isInPlay(obj) def getEffects(self): return [self.effect] def __str__ (self): return "ConditionalContinuousEffectStaticAbility(%s)" % (str(self.effect))
def __init__ (self, condition, effect): from effects import ConditionalEffect self.effect = ConditionalEffect(condition, effect)