mixedcards/Assets/Battle/CardsHeroes/ThunderstormHCard.cs
2020-09-24 01:01:21 -04:00

20 lines
769 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ThunderstormHCard : HeroCard
{
public ThunderstormHCard(BattleParticipant owner)
: base(owner, HCardId.Thunderstorm, "Thunderstorm", 3, CardType.Enchantment,
"Add 1 max energy. Acquire 2 Lightning Strike into draw pile.") {
}
public override IEnumerator Use(IBattleEffectApplier effectApplier,
MonsterViewpoint viewpoint, BattlePlayerControls playerControls) {
effectApplier.Apply(new IncreaseMaxEnergyEffect(1));
effectApplier.Apply(new AcquireCardsEffect(
new HCardId[] {HCardId.LightningStrike, HCardId.LightningStrike},
BattleZone.DrawPile, this.owner));
yield break;
}
}