예제 #1
0
 public void EvokeCardEffect(AbstractCard card, AbstractBattleUnit target, QueueingType queuingType = QueueingType.TO_BACK)
 {
     QueuedActions.DelayedActionWithCustomTrigger("Evoke card effect", () =>
     {
         RunCardEvocationSpecialEffects(card, target);
         card.EvokeCardEffect(target);
     }
                                                  );
 }
 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);
         }
     }
 }
        public override void OnAnyCardPlayed(AbstractCard cardPlayed, AbstractBattleUnit targetOfCard, bool isMine)
        {
            var target = targetOfCard;

            if (target.IsDead)
            {
                target = CardTargeting.RandomTargetableEnemy();
            }
            cardPlayed.EvokeCardEffect(target, new EnergyPaidInformation());
            Stacks--;
        }