Rename CardFoo to FooHCard

This commit is contained in:
henriquenakashima 2020-09-24 00:38:19 -04:00
parent 621069fd71
commit b5c900aa24
12 changed files with 15 additions and 16 deletions

View file

@ -0,0 +1,19 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class CoverHCard : HeroCard
{
public CoverHCard(BattleParticipant owner)
: base(owner, HCardId.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));
}
}