mixedcards/Assets/Battle/CardsHeroes/BlindFuryHCard.cs
2020-10-09 01:43:37 -04:00

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;
}
}