1
0
Fork 0
mirror of https://github.com/correl/mage.git synced 2025-04-09 01:01:06 -09:00

Hearstone applies to all creatures

This commit is contained in:
Paulo L F Casaretto 2015-06-28 14:25:58 -03:00
parent c7635912b8
commit a42aeed533

View file

@ -74,8 +74,8 @@ public class Heartstone extends CardImpl {
class HeartstoneEffect extends CostModificationEffectImpl {
private static final String effectText = "Activated abilities of creatures you control cost {1} less to activate. This effect can't reduce the amount of mana an ability costs to activate to less than one mana";
private static final FilterControlledCreaturePermanent filter = new FilterControlledCreaturePermanent();
private static final String effectText = "Activated abilities of creatures cost {1} less to activate. This effect can't reduce the amount of mana an ability costs to activate to less than one mana.";
private static final FilterCreaturePermanent filter = new FilterCreaturePermanent();
public HeartstoneEffect() {
super(Duration.Custom, Outcome.Benefit, CostModificationType.REDUCE_COST);
@ -102,7 +102,7 @@ class HeartstoneEffect extends CostModificationEffectImpl {
@Override
public boolean applies(Ability abilityToModify, Ability source, Game game) {
if (abilityToModify.getAbilityType().equals(AbilityType.ACTIVATED)) {
//Activated abilities of creatures you control
// Activated abilities of creatures
Permanent permanent = game.getPermanent(abilityToModify.getSourceId());
if (permanent != null && filter.match(permanent, source.getSourceId(), source.getControllerId(), game)) {
return true;