Split CardsHeroes and CardsMonsters

This commit is contained in:
henriquenakashima 2020-09-19 22:44:07 -04:00
parent 265c24ea1c
commit be15f77a34
12 changed files with 9 additions and 1 deletions

View file

@ -0,0 +1,19 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class CardCover : BaseCard
{
public CardCover(BattleParticipant owner)
: base(owner, CardId.Cover, "Cover", 1, CardType.Skill,
"Block 3 damage on another target ally.") {
}
public override IEnumerator Use(IBattleEffectApplier effectApplier, BattlePlayerControls playerControls) {
SingleTargeting singleTargeting = new SingleTargeting(new OtherHeroTargetPolicy(this.owner));
yield return playerControls.StartCoroutine(playerControls.ChooseTarget(singleTargeting));
BattleParticipant target = singleTargeting.GetTarget();
effectApplier.Apply(new BlockEffect(target, 3));
}
}