20 lines
710 B
C#
20 lines
710 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class CardCover : BaseCard
|
|
{
|
|
public CardCover(BattleParticipant owner)
|
|
: base(owner, CardId.Cover, "Cover", 1, CardType.Action,
|
|
"Block 3 damage on another target ally.") {
|
|
|
|
}
|
|
|
|
public override IEnumerator Use(BattlePlayerControls playerControls) {
|
|
SingleTargeting singleTargeting = new SingleTargeting(new OtherHeroTargetPolicy(this.owner));
|
|
yield return playerControls.StartCoroutine(playerControls.ChooseTarget(singleTargeting));
|
|
BattleParticipant target = singleTargeting.GetTarget();
|
|
Debug.Log("Covering " + target);
|
|
target.AddBlock(3);
|
|
}
|
|
}
|