Add Cover card and implement block

This commit is contained in:
henriquenakashima 2020-09-19 00:55:36 -04:00
parent ba5b890c2a
commit b4dd6c3496
8 changed files with 266 additions and 3 deletions

View file

@ -0,0 +1,17 @@
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);
}
}