mixedcards/Assets/Battle/CardsHeroes/IronskinDraughtHCard.cs
2020-09-24 01:01:21 -04:00

20 lines
787 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class IronskinDraughtHCard : HeroCard
{
public IronskinDraughtHCard(BattleParticipant owner)
: base(owner, HCardId.Cover, "Ironskin Draught", 3, CardType.Skill,
"Block 6 damage on target ally.") {
}
public override IEnumerator Use(IBattleEffectApplier effectApplier,
MonsterViewpoint viewpoint, BattlePlayerControls playerControls) {
SingleTargeting singleTargeting = new SingleTargeting(new AnyHeroTargetPolicy());
yield return playerControls.StartCoroutine(playerControls.ChooseTarget(singleTargeting));
BattleParticipant target = singleTargeting.GetTarget();
effectApplier.Apply(new BlockEffect(target, 6));
}
}