Implement BlindFury

This commit is contained in:
henriquenakashima 2020-09-24 01:01:21 -04:00
parent 626f465ca0
commit 281ad2dbc5
13 changed files with 82 additions and 21 deletions

View file

@ -0,0 +1,19 @@
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(target, 5));
effectApplier.Apply(new ModifyInsightEffect(-1));
yield break;
}
}