22 lines
875 B
C#
22 lines
875 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class ShieldBlockHCard : HeroCard
|
|
{
|
|
public ShieldBlockHCard(BattleParticipant owner)
|
|
: base(owner, HCardId.ShieldBlock, "Shield Block", 1, CardType.Skill,
|
|
"Block 2 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));
|
|
yield return new WaitForSeconds(0.8f);
|
|
BattleParticipant target = singleTargeting.GetTarget();
|
|
effectApplier.Apply(new BlockEffect(target, 2));
|
|
yield return new WaitForSeconds(0.8f);
|
|
}
|
|
}
|