public override void OnUseCard(BattlePlayingCardDataInUnitModel curCard)
        {
            BattleUnitModel target = curCard?.target;

            if (target == null)
            {
                return;
            }
            if (this.CheckAbility(target))
            {
                curCard.ApplyDiceStatBonus(DiceMatch.AllDice, new DiceStatBonus()
                {
                    dmg = 2 * this.stack
                });
                if (this._owner.faction == Faction.Player)
                {
                    curCard.ApplyDiceStatBonus(DiceMatch.AllDice, new DiceStatBonus()
                    {
                        power = 1 * this.stack
                    });
                }
                ++this.stack;
                this._owner.battleCardResultLog?.SetCreatureAbilityEffect("7/WayBeckHome_Emotion_Atk", 1f);
                this._owner.battleCardResultLog?.SetCreatureEffectSound("Creature/House_NormalAtk");
            }
            else
            {
                this.stack = 0;
            }
        }
 public override void OnUseCard(BattleUnitModel owner, BattlePlayingCardDataInUnitModel playingCard)
 {
     base.OnUseCard(owner, playingCard);
     playingCard.ApplyDiceStatBonus(DiceMatch.AllDice, new DiceStatBonus()
     {
         power = 1
     });
 }
 public override void OnUseCard(BattlePlayingCardDataInUnitModel curCard)
 {
     base.OnUseCard(curCard);
     curCard.ApplyDiceStatBonus(DiceMatch.NextDice, new DiceStatBonus()
     {
         power = Pow
     });
 }
Пример #4
0
 public override void OnUseCard(BattlePlayingCardDataInUnitModel card)
 {
     if (card.speedDiceResultValue >= 6)
     {
         card.ApplyDiceStatBonus(DiceMatch.AllDefenseDice, new DiceStatBonus
         {
             power = 3
         });
     }
 }
Пример #5
0
 public override void OnUseCard(BattlePlayingCardDataInUnitModel curCard)
 {
     base.OnUseCard(curCard);
     if (curCard.card.GetID() != 703207)
     {
         return;
     }
     curCard.ApplyDiceStatBonus(DiceMatch.DiceByIdx(1), new DiceStatBonus()
     {
         max = Math.Max(0, -3 + 3 * Level)
     });
 }
Пример #6
0
 public override void OnStartParrying(BattlePlayingCardDataInUnitModel card)
 {
     base.OnStartParrying(card);
     if (card.earlyTarget == card.target)
     {
         card.ApplyDiceStatBonus(DiceMatch.AllDice, new DiceStatBonus()
         {
             power = this.Pow
         });
     }
     this._owner.battleCardResultLog?.SetNewCreatureAbilityEffect("7_C/FX_IllusionCard_7_C_Together", 2f);
     this._owner.battleCardResultLog?.SetCreatureEffectSound("Creature/House_MakeRoad");
 }
 public override void OnUseCard(BattlePlayingCardDataInUnitModel curCard)
 {
     base.OnUseCard(curCard);
     ExtraHit = false;
     if (extrahit.Contains(curCard))
     {
         curCard.ApplyDiceStatBonus(DiceMatch.AllAttackDice, new DiceStatBonus()
         {
             dmgRate = (Level - 1) * 25
         });
         ExtraHit = true;
     }
     extrahit.Remove(curCard);
 }
Пример #8
0
        public override void OnWinParrying(BattleDiceBehavior behavior)
        {
            base.OnWinParrying(behavior);
            BattlePlayingCardDataInUnitModel card = behavior?.card;

            if (card == null || behavior == this.last)
            {
                return;
            }
            this.win++;
            card.ApplyDiceStatBonus(DiceMatch.LastDice, new DiceStatBonus()
            {
                power = Pow
            });
        }
        public override void OnUseCard(BattlePlayingCardDataInUnitModel curCard)
        {
            base.OnUseCard(curCard);
            BattleDiceCardBuf battleDiceCardBuf = curCard?.card?.GetBufList().Find((Predicate <BattleDiceCardBuf>)(y => y is BattleDiceCardBuf_Emotion_Heart));

            if (battleDiceCardBuf == null)
            {
                return;
            }
            curCard.ApplyDiceStatBonus(DiceMatch.AllDice, new DiceStatBonus()
            {
                power = Pow
            });
            battleDiceCardBuf.Destroy();
        }