Esempio n. 1
0
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))
Esempio n. 2
0
 def __init__ (self, condition, effect):
     from effects import ConditionalEffect
     self.effect = ConditionalEffect(condition, effect)