package com.hearthsim.card.basic.spell; import com.hearthsim.card.spellcard.SpellTargetableCard; import com.hearthsim.event.effect.EffectCharacter; import com.hearthsim.event.filter.FilterCharacter; import com.hearthsim.event.filter.FilterCharacterTargetedSpell; public class ShadowWordPain extends SpellTargetableCard { private final static FilterCharacter filter = new FilterCharacterTargetedSpell() { @Override protected boolean includeEnemyMinions() { return true; } @Override protected boolean includeOwnMinions() { return true; } @Override protected int maxAttack() { return 3; } }; /** * Constructor * * @param hasBeenUsed Whether the card has already been used or not */ @Deprecated public ShadowWordPain(boolean hasBeenUsed) { this(); this.hasBeenUsed = hasBeenUsed; } /** * Constructor * * Defaults to hasBeenUsed = false */ public ShadowWordPain() { super(); } @Override public FilterCharacter getTargetableFilter() { return ShadowWordPain.filter; } /** * * Use the card on the given target * * Gives all friendly characters +2 attack for this turn * * * * @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() { return EffectCharacter.DESTROY; } }