Ejemplo n.º 1
0
    def __init__(self, **kwargs):
        super().__init__(**kwargs)

        self.CD = cooldown.Cooldown(
            CHAMP=self.CHAMP,
            OWNER=self,
            name=['cd-refresh', str(self.CHAMP) + '.W'],
            length=7000)
        self.duration = time_.Timer(
            name=['buff-duration', str(self.CHAMP) + '.W'],
            length=5500,
            method=self.buff_active,
            args=[False])

        self._passive_mdmg = dmgheal.MDmg(CHAMP=self.CHAMP,
                                          OWNER=self,
                                          target=None,
                                          amount=None,
                                          tags={'ability'})
        self._active_mdmg = dmgheal.MDmg(CHAMP=self.CHAMP,
                                         OWNER=self,
                                         target=None,
                                         amount=None,
                                         tags={'ability'})
        self._managain = dmgheal.Managain(CHAMP=self.CHAMP,
                                          OWNER=self,
                                          target=self.CHAMP,
                                          amount=None)

        if self.lvl > 0:  # dont like this much
            self.CHAMP.AUTO.on_land.append(self.passive_mdmg.apply)
Ejemplo n.º 2
0
 def __init__(self, **kwargs):
     self.castimer_method = self.send
     super().__init__(**kwargs)
     self.sendtimer = time_.Timer(
         name=['auto-send', str(self.CHAMP) + '.AUTO'],
         length=250,
         method=self.land)
Ejemplo n.º 3
0
 def __init__(self, amount, length, target, **kwargs):
     # TODO SHOULDNT TAKE AMOUNT AS PARAMETER????
     super().__init__(**kwargs)
     self.amount = amount
     # self.current_hp = amount
     self.target = target
     self.timer = time_.Timer('shield-expire {}'.format(self.target),
                              length, self.expire)
Ejemplo n.º 4
0
 def __init__(self, **kwargs):
     super().__init__(**kwargs)
     self.timer  = time_.Timer('kassadin?.REGEN', 
                               'proc-regen {}'.format(self.CHAMP),
                               500, 
                               self.proc,
                               persist=True)
     self.timer.go()
     self._heal = dmgheal.Heal(CHAMP  = self.CHAMP, 
                               OWNER  = self, 
                               amount = self.CHAMP.total_hp5 / 10,
                               target = self.CHAMP,
                               tags   = ['regen'],)
Ejemplo n.º 5
0
Archivo: w.py Proyecto: blahblah23/tool
    def __init__(self, **kwargs):
        super().__init__(**kwargs)

        self.width = 300 + 50 * self.lvlups  # property

        self._CD = cooldown.Cooldown(
            CHAMP=self.CHAMP,
            OWNER=self,
            name=['cd-refresh', str(self.CHAMP) + '.W'],
            length=None)
        self.duration = time_.Timer(
            name=['windwall-duration',
                  str(self.CHAMP) + '.W'],
            length=4000,
            method=self.stop)
Ejemplo n.º 6
0
    def __init__(self, **kwargs):
        super().__init__(**kwargs)

        self.on_land = []

        self.castimer = time_.Timer(
            name=['auto-cast', str(self.CHAMP) + '.AUTO'],
            length=self.cast_length,
            method=self.castimer_method)

        self.CD = cooldown.Cooldown(
            CHAMP=self.CHAMP,
            OWNER=self,
            name=['cd-refresh', str(self.CHAMP) + '.AUTO'],
            length=self.cd_length)
        self._pdmg = dmgheal.PDmg(CHAMP=self.CHAMP,
                                  OWNER=self,
                                  amount=None,
                                  tags={'auto'})
Ejemplo n.º 7
0
 def __init__(self, length, **kwargs):
     super().__init__(**kwargs)
     self.length = length
     self.duration = time_.Timer(name   = ['stacks-duration', str(self.CHAMP)], 
                                 length = self.length, 
                                 method = self.drop_stack)
Ejemplo n.º 8
0
kassadin0 = champ1 = Kassadin(lvl=18, scheme='qweqw')
kassadin2 = champ2 = Kassadin(lvl=8, scheme='qweeq')
yasuo0 = champ3 = Yasuo(lvl=18, scheme='qewqw')
champ1.target = champ2
champ2.target = champ1

subscribeThisLater()

# print(kassadin0.base_ats)
# print(kassadin0.bonus_ats)
# print(kassadin0.total_ats)
print(kassadin2.current_hp)

time_.Timer(['TEMP-cast', 'kassadin0'], 0, kassadin0.W.cast
            # kassadin0.AUTO.cast
            ).go()
time_.Timer(['TEMP-cast', 'kassadin0'], 0, kassadin0.AUTO.cast).go()
time.go()

print(kassadin2.current_hp)

############
# TODO using @classmethod allows to call a method without needing an instance
############

# print(kassadin.E.STACKER.counter)
# print(kassadin2.E.STACKER.counter)

# kassadin.Q.cast()
# pprint(kassadin2.current_hp)
Ejemplo n.º 9
0
 def __init__(self, name, length, **kwargs):
     super().__init__(**kwargs)
     self.ready = True
     self.timer = time_.Timer(name=name, length=length, method=self.refresh)