コード例 #1
0
 public override void OnAnyCardPlayed(AbstractCard cardPlayed, AbstractBattleUnit targetOfCard, bool ownedByMe)
 {
     if (cardPlayed.NameContains("smog"))
     {
         state().energy += Stacks;
     }
 }
コード例 #2
0
 public override void OnAnyCardPlayed(AbstractCard cardPlayed, AbstractBattleUnit targetOfCard, bool ownedByMe)
 {
     if (cardPlayed.NameContains("grenade"))
     {
         for (int i = 0; i < this.Stacks; i++)
         {
             cardPlayed.EvokeCardEffect(targetOfCard);
         }
     }
 }
コード例 #3
0
 public override void OnAnyCardPlayed(AbstractCard cardPlayed, AbstractBattleUnit targetOfCard, bool isMine)
 {
     if (cardPlayed.NameContains("blood"))
     {
         foreach (var ally in state().AllyUnitsInBattle)
         {
             action().HealUnit(ally, Stacks, this.OwnerUnit);
         }
     }
 }