Ejemplo n.º 1
0
        IEnumerator ThrowFight(CardComponent enemy)
        {
            SettingInvestigatorAttack attackToenemy = new SettingInvestigatorAttack(enemy, GameControl.ActiveInvestigator.AttackDamage + 1, throwAttack.IsCancelable, bonus: 2);

            yield return(attackToenemy.RunNow());

            throwAttack.IsCancel = !attackToenemy.SkillTest.IsComplete ?? false;
        }
Ejemplo n.º 2
0
        IEnumerator BasicAttack(InvestigatorComponent investigator)
        {
            SettingInvestigatorAttack attackToEnemy = new SettingInvestigatorAttack(ThisCard, investigator.AttackDamage, attack.IsCancelable);

            yield return(attackToEnemy.RunNow());

            attack.IsCancel = !attackToEnemy.SkillTest.IsComplete ?? false;
        }
Ejemplo n.º 3
0
        IEnumerator Fight(CardComponent enemy)
        {
            SettingInvestigatorAttack attackToenemy = new SettingInvestigatorAttack(enemy, ThisCard.VisualOwner.AttackDamage + 2, playFromHand.IsCancelable);

            attackToenemy.SkillTest.SkillType = Skill.Agility;
            attackToenemy.SkillTest.ExtraCard = ThisCard;
            yield return(attackToenemy.RunNow());

            playFromHand.IsCancel = !attackToenemy.SkillTest.IsComplete ?? false;
        }
Ejemplo n.º 4
0
        IEnumerator LitaHelp(SettingInvestigatorAttack attackAction)
        {
            yield return(new ChooseCardAction(
                             new CardEffect(card: ThisCard,
                                            effect: () => BonusDamage(attackAction),
                                            animationEffect: BonusDamageAnimation,
                                            type: EffectType.Reaction,
                                            name: "Ayuda de " + ThisCard.Info.Name + ": +1 de daño"), isOptionalChoice: true).RunNow());

            yield return(null);
        }
Ejemplo n.º 5
0
 bool AllyAttack(SettingInvestigatorAttack attackAction)
 {
     if (!ThisCard.IsInPlay)
     {
         return(false);
     }
     if (GameControl.ActiveInvestigator.CurrentLocation != ThisCard.VisualOwner?.CurrentLocation)
     {
         return(false);
     }
     if (!attackAction.Enemy.KeyWords.Contains("Monster"))
     {
         return(false);
     }
     return(true);
 }
Ejemplo n.º 6
0
 bool RetiliateAttack(SettingInvestigatorAttack attackToEnemy)
 {
     if (!IsRetaliate)
     {
         return(false);
     }
     if (attackToEnemy.Enemy != ThisCard)
     {
         return(false);
     }
     if (ThisCard.IsExausted)
     {
         return(false);
     }
     if (!attackToEnemy.SkillTest.IsComplete ?? false)
     {
         return(false);
     }
     if (attackToEnemy.SkillTest.IsWin)
     {
         return(false);
     }
     return(true);
 }
Ejemplo n.º 7
0
 protected virtual void SettingFight(CardComponent enemy)
 {
     attackToenemy = new SettingInvestigatorAttack(enemy, Damage, weaponCardEffect.IsCancelable, Bonus);
     attackToenemy.SkillTest.ExtraCard = ThisCard;
 }
Ejemplo n.º 8
0
 IEnumerator BonusDamage(SettingInvestigatorAttack attackAction)
 {
     attackAction.Damage++;
     yield return(null);
 }