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 ShadowWordDeath extends SpellTargetableCard { private final static FilterCharacter filter = new FilterCharacterTargetedSpell() { protected boolean includeEnemyMinions() { return true; } protected boolean includeOwnMinions() { return true; } @Override protected int minAttack() { return 5; } }; /** * Constructor * * @param hasBeenUsed Whether the card has already been used or not */ @Deprecated public ShadowWordDeath(boolean hasBeenUsed) { this(); this.hasBeenUsed = hasBeenUsed; } /** * Constructor * * Defaults to hasBeenUsed = false */ public ShadowWordDeath() { super(); } @Override public FilterCharacter getTargetableFilter() { return ShadowWordDeath.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; } }