mixedcards/Assets/Battle/CardsMonsters/QuickSwiftDeathMCard.cs
2020-09-20 16:45:50 -04:00

18 lines
691 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class QuickSwiftDeathMCard : MonsterCard
{
public QuickSwiftDeathMCard(BattleParticipant owner)
: base(owner, MCardId.GolemFist, "Quick Swift Death", 0, CardType.Attack,
"Deals 100 damage to target. Target: nearest hero.") {
}
public override IEnumerator Use(IBattleEffectApplier effectApplier, MonsterViewpoint monsterViewpoint) {
BattleParticipant target = AIUtils.GetNearestHero(monsterViewpoint, this.owner);
DealDamageEffect damageEffect = new DealDamageEffect(target, 100);
effectApplier.Apply(damageEffect);
yield break;
}
}