19 lines
704 B
C#
19 lines
704 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class BlindFuryHCard : HeroCard
|
|
{
|
|
public BlindFuryHCard(BattleParticipant owner)
|
|
: base(owner, HCardId.BlindFury, "Blind Fury", 2, CardType.Attack,
|
|
"Deals 5 damage to target. -1 insight.") {
|
|
}
|
|
|
|
public override IEnumerator Use(IBattleEffectApplier effectApplier,
|
|
MonsterViewpoint viewpoint, BattlePlayerControls playerControls) {
|
|
BattleParticipant target = AIUtils.GetNearestMonster(viewpoint, this.owner);
|
|
effectApplier.Apply(new DealDamageEffect(Owner, target, 5));
|
|
effectApplier.Apply(new ModifyInsightEffect(-1));
|
|
yield break;
|
|
}
|
|
}
|