17 lines
580 B
C#
17 lines
580 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class CardCover : BaseCard
|
|
{
|
|
public CardCover() : base(CardId.Cover, "Cover", 1, CardType.Action, "Block 3 damage on another target ally.") {
|
|
|
|
}
|
|
|
|
public override IEnumerator Use(BattlePlayerControls playerControls) {
|
|
List<BattleParticipant> target = new List<BattleParticipant>();
|
|
yield return playerControls.StartCoroutine(playerControls.ChooseTarget((t) => {target.Add(t);}));
|
|
Debug.Log("Covering " + target[0]);
|
|
target[0].AddBlock(3);
|
|
}
|
|
}
|