package com.hearthsim.card.basic.spell; import com.hearthsim.card.spellcard.SpellTargetableCard; import com.hearthsim.event.effect.EffectCharacter; import com.hearthsim.event.effect.EffectCharacterHeal; public class HealingTouch extends SpellTargetableCard { private static final byte HEAL_AMOUNT = 8; /** * Constructor * * @param hasBeenUsed Whether the card has already been used or not */ @Deprecated public HealingTouch(boolean hasBeenUsed) { this(); this.hasBeenUsed = hasBeenUsed; } /** * Constructor * * Defaults to hasBeenUsed = false */ public HealingTouch() { super(); } /** * * Use the card on the given target * * Heal a character for 8 * * * * @param side * @param boardState The BoardState before this card has performed its action. It will be manipulated and returned. * * @return The boardState is manipulated and returned */ @Override public EffectCharacter getTargetableEffect() { if (this.effect == null) { this.effect = new EffectCharacterHeal(HealingTouch.HEAL_AMOUNT); } return this.effect; } }