Implement BlindFury
This commit is contained in:
parent
626f465ca0
commit
281ad2dbc5
13 changed files with 82 additions and 21 deletions
19
Assets/Battle/CardsHeroes/BlindFuryHCard.cs
Normal file
19
Assets/Battle/CardsHeroes/BlindFuryHCard.cs
Normal 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;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue