Rename CardFoo to FooHCard
This commit is contained in:
parent
621069fd71
commit
b5c900aa24
12 changed files with 15 additions and 16 deletions
27
Assets/Battle/CardsHeroes/ScarringHCard.cs
Normal file
27
Assets/Battle/CardsHeroes/ScarringHCard.cs
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class ScarringHCard : HeroCard
|
||||
{
|
||||
public ScarringHCard(BattleParticipant owner)
|
||||
: base(owner, HCardId.Scarring, "Scarring", 2, CardType.Skill,
|
||||
"Block 4 damage. The next time damage is taken until next turn, gain 1 Max HP.") {
|
||||
}
|
||||
|
||||
public override IEnumerator Use(IBattleEffectApplier effectApplier, BattlePlayerControls playerControls) {
|
||||
effectApplier.Apply(new BlockEffect(this.owner, 4));
|
||||
DamageTrigger trigger = new DamageTrigger(
|
||||
new List<BattleParticipant>() {this.owner},
|
||||
this.NotifyDamageDealt,
|
||||
TriggerExpiration.StartOfNextHeroTurn,
|
||||
TriggerRepetition.Once);
|
||||
effectApplier.Apply(new ArmDamageTriggerEffect(trigger));
|
||||
yield break;
|
||||
}
|
||||
|
||||
public void NotifyDamageDealt(IBattleEffectApplier effectApplier) {
|
||||
IncreaseMaxHPEffect effect = new IncreaseMaxHPEffect(this.owner, 1);
|
||||
effectApplier.Apply(effect);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue