Implement Meditate
This commit is contained in:
parent
03ca23d484
commit
ceb46f98b2
14 changed files with 207 additions and 28 deletions
18
Assets/Battle/CardsHeroes/MeditateHCard.cs
Normal file
18
Assets/Battle/CardsHeroes/MeditateHCard.cs
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class MeditateHCard : HeroCard
|
||||
{
|
||||
public MeditateHCard(BattleParticipant owner)
|
||||
: base(owner, CardId.Meditate, "Meditate", 2, CardType.Skill, "+1 insight. Draw a card.") {
|
||||
}
|
||||
|
||||
public override IEnumerator Use(
|
||||
IBattleEffectApplier effectApplier, BattlePlayerControls playerControls) {
|
||||
effectApplier.Apply(new ModifyInsightEffect(+1));
|
||||
yield return new WaitForSeconds(1f);
|
||||
effectApplier.Apply(new DrawCardsEffect(1, TeamChoice.Heroes));
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue