mirror of
https://github.com/magefree/mage.git
synced 2026-01-26 21:29:17 -08:00
[EOE] Implement Moxite Refinery
This commit is contained in:
parent
2b73fc9487
commit
2744bb00f4
4 changed files with 68 additions and 21 deletions
|
|
@ -9,8 +9,6 @@ import mage.constants.Zone;
|
|||
|
||||
public class ActivateAsSorceryActivatedAbility extends ActivatedAbilityImpl {
|
||||
|
||||
private boolean showActivateText = true;
|
||||
|
||||
public ActivateAsSorceryActivatedAbility(Effect effect, Cost cost) {
|
||||
this(Zone.BATTLEFIELD, effect, cost);
|
||||
}
|
||||
|
|
@ -22,7 +20,6 @@ public class ActivateAsSorceryActivatedAbility extends ActivatedAbilityImpl {
|
|||
|
||||
protected ActivateAsSorceryActivatedAbility(final ActivateAsSorceryActivatedAbility ability) {
|
||||
super(ability);
|
||||
this.showActivateText = ability.showActivateText;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
@ -30,18 +27,9 @@ public class ActivateAsSorceryActivatedAbility extends ActivatedAbilityImpl {
|
|||
return new ActivateAsSorceryActivatedAbility(this);
|
||||
}
|
||||
|
||||
public ActivateAsSorceryActivatedAbility withShowActivateText(boolean showActivateText) {
|
||||
this.showActivateText = showActivateText;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getRule() {
|
||||
String superRule = super.getRule();
|
||||
if (!showActivateText) {
|
||||
return superRule;
|
||||
}
|
||||
|
||||
String newText = (mayActivate == TargetController.OPPONENT
|
||||
? " Only your opponents may activate this ability and only as a sorcery."
|
||||
: " Activate only as a sorcery.");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue