using System.Collections; using System.Collections.Generic; using UnityEngine; public class IronskinDraughtHCard : HeroCard { public IronskinDraughtHCard(BattleParticipant owner) : base(owner, HCardId.IronskinDraught, "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)); } }