19 lines
751 B
C#
19 lines
751 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class CardCrashingPunch : BaseCard
|
|
{
|
|
public CardCrashingPunch(BattleParticipant owner)
|
|
: base(owner, CardId.CrashingPunch, "Crashing Punch", 3, CardType.Attack,
|
|
"Deals 3 damage to target.") {
|
|
}
|
|
|
|
public override IEnumerator Use(IBattleEffectApplier effectApplier, BattlePlayerControls playerControls) {
|
|
SingleTargeting singleTargeting = new SingleTargeting(new AnyTargetPolicy());
|
|
yield return playerControls.StartCoroutine(playerControls.ChooseTarget(singleTargeting));
|
|
BattleParticipant target = singleTargeting.GetTarget();
|
|
Debug.Log("Punching " + target);
|
|
target.DealDamage(3);
|
|
}
|
|
}
|