Rename CardFoo to FooHCard
This commit is contained in:
parent
621069fd71
commit
b5c900aa24
12 changed files with 15 additions and 16 deletions
19
Assets/Battle/CardsHeroes/CoverHCard.cs
Normal file
19
Assets/Battle/CardsHeroes/CoverHCard.cs
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class CoverHCard : HeroCard
|
||||
{
|
||||
public CoverHCard(BattleParticipant owner)
|
||||
: base(owner, HCardId.Cover, "Cover", 1, CardType.Skill,
|
||||
"Block 3 damage on another target ally.") {
|
||||
|
||||
}
|
||||
|
||||
public override IEnumerator Use(IBattleEffectApplier effectApplier, BattlePlayerControls playerControls) {
|
||||
SingleTargeting singleTargeting = new SingleTargeting(new OtherHeroTargetPolicy(this.owner));
|
||||
yield return playerControls.StartCoroutine(playerControls.ChooseTarget(singleTargeting));
|
||||
BattleParticipant target = singleTargeting.GetTarget();
|
||||
effectApplier.Apply(new BlockEffect(target, 3));
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue