forked from External/mage
45 lines
1.4 KiB
Java
45 lines
1.4 KiB
Java
package mage.cards.r;
|
|
|
|
import mage.MageInt;
|
|
import mage.abilities.Ability;
|
|
import mage.abilities.common.EntersBattlefieldOrDiesSourceTriggeredAbility;
|
|
import mage.abilities.effects.common.counter.AddCountersTargetEffect;
|
|
import mage.cards.CardImpl;
|
|
import mage.cards.CardSetInfo;
|
|
import mage.constants.CardType;
|
|
import mage.constants.SubType;
|
|
import mage.counters.CounterType;
|
|
import mage.target.common.TargetControlledCreaturePermanent;
|
|
|
|
import java.util.UUID;
|
|
|
|
/**
|
|
* @author TheElk801
|
|
*/
|
|
public final class ReputableMerchant extends CardImpl {
|
|
|
|
public ReputableMerchant(UUID ownerId, CardSetInfo setInfo) {
|
|
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2/W}{2/B}{2/G}");
|
|
|
|
this.subtype.add(SubType.HUMAN);
|
|
this.subtype.add(SubType.CITIZEN);
|
|
this.power = new MageInt(2);
|
|
this.toughness = new MageInt(2);
|
|
|
|
// When this creature enters or dies, put a +1/+1 counter on target creature you control.
|
|
Ability ability = new EntersBattlefieldOrDiesSourceTriggeredAbility(
|
|
new AddCountersTargetEffect(CounterType.P1P1.createInstance()), false
|
|
);
|
|
ability.addTarget(new TargetControlledCreaturePermanent());
|
|
this.addAbility(ability);
|
|
}
|
|
|
|
private ReputableMerchant(final ReputableMerchant card) {
|
|
super(card);
|
|
}
|
|
|
|
@Override
|
|
public ReputableMerchant copy() {
|
|
return new ReputableMerchant(this);
|
|
}
|
|
}
|