Implement IronskinDraught
This commit is contained in:
parent
b5c900aa24
commit
626f465ca0
9 changed files with 79 additions and 2 deletions
19
Assets/Battle/CardsHeroes/IronskinDraughtHCard.cs
Normal file
19
Assets/Battle/CardsHeroes/IronskinDraughtHCard.cs
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class IronskinDraughtHCard : HeroCard
|
||||
{
|
||||
public IronskinDraughtHCard(BattleParticipant owner)
|
||||
: base(owner, HCardId.Cover, "Ironskin Draught", 3, CardType.Skill,
|
||||
"Block 6 damage on target ally.") {
|
||||
|
||||
}
|
||||
|
||||
public override IEnumerator Use(IBattleEffectApplier effectApplier, BattlePlayerControls playerControls) {
|
||||
SingleTargeting singleTargeting = new SingleTargeting(new AnyHeroTargetPolicy());
|
||||
yield return playerControls.StartCoroutine(playerControls.ChooseTarget(singleTargeting));
|
||||
BattleParticipant target = singleTargeting.GetTarget();
|
||||
effectApplier.Apply(new BlockEffect(target, 6));
|
||||
}
|
||||
}
|
||||
11
Assets/Battle/CardsHeroes/IronskinDraughtHCard.cs.meta
Normal file
11
Assets/Battle/CardsHeroes/IronskinDraughtHCard.cs.meta
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 9e499b0e7a7b8664e997c58b42008245
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Loading…
Add table
Add a link
Reference in a new issue