Implement GolemFist
This commit is contained in:
parent
4ca7b7537a
commit
d1af817bc6
11 changed files with 106 additions and 19 deletions
18
Assets/Battle/CardsMonsters/GolemFistMCard.cs
Normal file
18
Assets/Battle/CardsMonsters/GolemFistMCard.cs
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class GolemFistMCard : MonsterCard
|
||||
{
|
||||
public GolemFistMCard(BattleParticipant owner)
|
||||
: base(owner, MCardId.GolemFist, "Golem Fist", 2, CardType.Attack,
|
||||
"Deals 3 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, 3);
|
||||
effectApplier.Apply(damageEffect);
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue