mirror of
https://github.com/correl/mage.git
synced 2024-11-28 11:09:54 +00:00
[DTK] Some fixes to Exploit.
This commit is contained in:
parent
eb532a233d
commit
d867c4dfe6
4 changed files with 21 additions and 20 deletions
|
@ -30,9 +30,9 @@ package mage.sets.dragonsoftarkir;
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
import mage.MageInt;
|
import mage.MageInt;
|
||||||
import mage.abilities.Ability;
|
import mage.abilities.Ability;
|
||||||
import mage.abilities.common.ExploidedCreatureTriggeredAbility;
|
import mage.abilities.common.ExploitCreatureTriggeredAbility;
|
||||||
import mage.abilities.effects.common.continuous.BoostTargetEffect;
|
import mage.abilities.effects.common.continuous.BoostTargetEffect;
|
||||||
import mage.abilities.keyword.ExploidAbility;
|
import mage.abilities.keyword.ExploitAbility;
|
||||||
import mage.cards.CardImpl;
|
import mage.cards.CardImpl;
|
||||||
import mage.constants.CardType;
|
import mage.constants.CardType;
|
||||||
import mage.constants.Duration;
|
import mage.constants.Duration;
|
||||||
|
@ -54,10 +54,10 @@ public class SilumgarButcher extends CardImpl {
|
||||||
this.toughness = new MageInt(3);
|
this.toughness = new MageInt(3);
|
||||||
|
|
||||||
// Exploit (When this creature enters the battlefield, you may sacrifice a creature.)
|
// 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.
|
// 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());
|
ability.addTarget(new TargetCreaturePermanent());
|
||||||
this.addAbility(ability);
|
this.addAbility(ability);
|
||||||
|
|
||||||
|
|
|
@ -37,19 +37,19 @@ import mage.game.events.GameEvent;
|
||||||
*
|
*
|
||||||
* @author LevelX2
|
* @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);
|
super(Zone.ALL, effect, optional);
|
||||||
}
|
}
|
||||||
|
|
||||||
public ExploidedCreatureTriggeredAbility(final ExploidedCreatureTriggeredAbility ability) {
|
public ExploitCreatureTriggeredAbility(final ExploitCreatureTriggeredAbility ability) {
|
||||||
super(ability);
|
super(ability);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public ExploidedCreatureTriggeredAbility copy() {
|
public ExploitCreatureTriggeredAbility copy() {
|
||||||
return new ExploidedCreatureTriggeredAbility(this);
|
return new ExploitCreatureTriggeredAbility(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
|
@ -55,19 +55,19 @@ import mage.target.TargetPermanent;
|
||||||
*
|
*
|
||||||
* @author LevelX2
|
* @author LevelX2
|
||||||
*/
|
*/
|
||||||
public class ExploidAbility extends EntersBattlefieldTriggeredAbility {
|
public class ExploitAbility extends EntersBattlefieldTriggeredAbility {
|
||||||
|
|
||||||
public ExploidAbility() {
|
public ExploitAbility() {
|
||||||
super(new ExploidEffect(), true);
|
super(new ExploitEffect(), true);
|
||||||
}
|
}
|
||||||
|
|
||||||
public ExploidAbility(final ExploidAbility ability) {
|
public ExploitAbility(final ExploitAbility ability) {
|
||||||
super(ability);
|
super(ability);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public ExploidAbility copy() {
|
public ExploitAbility copy() {
|
||||||
return new ExploidAbility(this);
|
return new ExploitAbility(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@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);
|
super(Outcome.Detriment);
|
||||||
this.staticText = "you may sacrifice a creature";
|
this.staticText = "you may sacrifice a creature";
|
||||||
}
|
}
|
||||||
|
|
||||||
public ExploidEffect(final ExploidEffect effect) {
|
public ExploitEffect(final ExploitEffect effect) {
|
||||||
super(effect);
|
super(effect);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public ExploidEffect copy() {
|
public ExploitEffect copy() {
|
||||||
return new ExploidEffect(this);
|
return new ExploitEffect(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
|
@ -17,6 +17,7 @@ Dredge|number|
|
||||||
Entwine|manaString|
|
Entwine|manaString|
|
||||||
Evoke|card, manaString|
|
Evoke|card, manaString|
|
||||||
Exalted|new|
|
Exalted|new|
|
||||||
|
Exploit|new|
|
||||||
Extort|new|
|
Extort|new|
|
||||||
Fear|instance|
|
Fear|instance|
|
||||||
First strike|instance|
|
First strike|instance|
|
||||||
|
|
Loading…
Reference in a new issue