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; }
IEnumerator BasicAttack(InvestigatorComponent investigator) { SettingInvestigatorAttack attackToEnemy = new SettingInvestigatorAttack(ThisCard, investigator.AttackDamage, attack.IsCancelable); yield return(attackToEnemy.RunNow()); attack.IsCancel = !attackToEnemy.SkillTest.IsComplete ?? false; }
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; }
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); }
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); }
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); }
protected virtual void SettingFight(CardComponent enemy) { attackToenemy = new SettingInvestigatorAttack(enemy, Damage, weaponCardEffect.IsCancelable, Bonus); attackToenemy.SkillTest.ExtraCard = ThisCard; }
IEnumerator BonusDamage(SettingInvestigatorAttack attackAction) { attackAction.Damage++; yield return(null); }