package net.demilich.metastone.game.spells.desc.valueprovider; import net.demilich.metastone.game.GameContext; import net.demilich.metastone.game.Player; import net.demilich.metastone.game.entities.Entity; public class CardCounter extends ValueProvider { public CardCounter(ValueProviderDesc desc) { super(desc); } @Override protected int provideValue(GameContext context, Player player, Entity target, Entity source) { return player.getHand().getCount(); } }