[DTK] Some fixes to Exploit.

This commit is contained in:
LevelX2 2015-03-03 14:01:36 +01:00
parent eb532a233d
commit d867c4dfe6
4 changed files with 21 additions and 20 deletions

View file

@ -30,9 +30,9 @@ package mage.sets.dragonsoftarkir;
import java.util.UUID;
import mage.MageInt;
import mage.abilities.Ability;
import mage.abilities.common.ExploidedCreatureTriggeredAbility;
import mage.abilities.common.ExploitCreatureTriggeredAbility;
import mage.abilities.effects.common.continuous.BoostTargetEffect;
import mage.abilities.keyword.ExploidAbility;
import mage.abilities.keyword.ExploitAbility;
import mage.cards.CardImpl;
import mage.constants.CardType;
import mage.constants.Duration;
@ -54,10 +54,10 @@ public class SilumgarButcher extends CardImpl {
this.toughness = new MageInt(3);
// Exploit (When this creature enters the battlefield, you may sacrifice a creature.)
this.addAbility(new ExploidAbility());
this.addAbility(new ExploitAbility());
// When Silumgar Butcher exploits a creature, target creature gets -3/-3 until end of turn.
Ability ability = new ExploidedCreatureTriggeredAbility(new BoostTargetEffect(-3,-3, Duration.EndOfTurn), false);
Ability ability = new ExploitCreatureTriggeredAbility(new BoostTargetEffect(-3,-3, Duration.EndOfTurn), false);
ability.addTarget(new TargetCreaturePermanent());
this.addAbility(ability);

View file

@ -37,19 +37,19 @@ import mage.game.events.GameEvent;
*
* @author LevelX2
*/
public class ExploidedCreatureTriggeredAbility extends TriggeredAbilityImpl {
public class ExploitCreatureTriggeredAbility extends TriggeredAbilityImpl {
public ExploidedCreatureTriggeredAbility(Effect effect, boolean optional) {
public ExploitCreatureTriggeredAbility(Effect effect, boolean optional) {
super(Zone.ALL, effect, optional);
}
public ExploidedCreatureTriggeredAbility(final ExploidedCreatureTriggeredAbility ability) {
public ExploitCreatureTriggeredAbility(final ExploitCreatureTriggeredAbility ability) {
super(ability);
}
@Override
public ExploidedCreatureTriggeredAbility copy() {
return new ExploidedCreatureTriggeredAbility(this);
public ExploitCreatureTriggeredAbility copy() {
return new ExploitCreatureTriggeredAbility(this);
}
@Override

View file

@ -55,19 +55,19 @@ import mage.target.TargetPermanent;
*
* @author LevelX2
*/
public class ExploidAbility extends EntersBattlefieldTriggeredAbility {
public class ExploitAbility extends EntersBattlefieldTriggeredAbility {
public ExploidAbility() {
super(new ExploidEffect(), true);
public ExploitAbility() {
super(new ExploitEffect(), true);
}
public ExploidAbility(final ExploidAbility ability) {
public ExploitAbility(final ExploitAbility ability) {
super(ability);
}
@Override
public ExploidAbility copy() {
return new ExploidAbility(this);
public ExploitAbility copy() {
return new ExploitAbility(this);
}
@Override
@ -77,20 +77,20 @@ public class ExploidAbility extends EntersBattlefieldTriggeredAbility {
}
class ExploidEffect extends OneShotEffect {
class ExploitEffect extends OneShotEffect {
public ExploidEffect() {
public ExploitEffect() {
super(Outcome.Detriment);
this.staticText = "you may sacrifice a creature";
}
public ExploidEffect(final ExploidEffect effect) {
public ExploitEffect(final ExploitEffect effect) {
super(effect);
}
@Override
public ExploidEffect copy() {
return new ExploidEffect(this);
public ExploitEffect copy() {
return new ExploitEffect(this);
}
@Override

View file

@ -17,6 +17,7 @@ Dredge|number|
Entwine|manaString|
Evoke|card, manaString|
Exalted|new|
Exploit|new|
Extort|new|
Fear|instance|
First strike|instance|