コード例 #1
0
 def run_battlecry(self, target, **kwargs):
     targets = self.game.get_zone(Zone.Play,
                                  self.player_id) + self.game.get_zone(
                                      Zone.Hero, self.player_id)
     return [
         std_events.AreaHealing(self.game, self, targets,
                                [2 for _ in targets])
     ]
コード例 #2
0
ファイル: basic_shaman.py プロジェクト: a415432669/MiniGames
 def process(self, event: respond[0]):
     if event.player_id != self.owner.player_id:
         return []
     targets = self.game.get_zone(Zone.Play, self.owner.player_id)
     return [
         std_events.AreaHealing(self.game, self.owner, targets,
                                [1 for _ in targets])
     ]
コード例 #3
0
ファイル: basic_priest.py プロジェクト: fyabc/MiniGames
 def run(self, target, **kwargs):
     enemies = ext.collect_1p(self, oop=True, player_id=1 - self.player_id)
     friends = ext.collect_1p(self, oop=True, player_id=self.player_id)
     return [
         std_events.AreaDamage(self.game, self, enemies,
                               [self.dh_values[0] for _ in enemies]),
         std_events.AreaHealing(self.game, self, friends,
                                [self.dh_values[1] for _ in friends]),
     ]