コード例 #1
0
 public override void ModifyCardsUponAcquisition(AbstractCard card, AbstractBattleUnit soldierAffected)
 {
     if (Stacks <= 0)
     {
         return;
     }
     Stacks--;
     soldierAffected.AddCardToPersistentDeck(card.CopyCard());
     soldierAffected.AddCardToPersistentDeck(card.CopyCard());
 }
コード例 #2
0
 public static DebuffOtherIntent AddCardToDiscardPile(
     AbstractBattleUnit source,
     AbstractBattleUnit target,
     AbstractCard card)
 {
     return(new DebuffOtherIntent(source, () =>
     {
         var cardCopy = card.CopyCard();
         cardCopy.Owner = target;
         ActionManager.Instance.CreateCardToBattleDeckDiscardPile(cardCopy);
     }));
 }