[40K] Implemented Magus Lucea Kane

This commit is contained in:
Evan Kranzler 2022-10-22 17:17:10 -04:00
parent 1a6b7d55ae
commit b57bdfe192
11 changed files with 130 additions and 27 deletions

View file

@ -49,7 +49,7 @@ public class ActivatePlaneswalkerLoyaltyAbilityTriggeredAbility extends Triggere
|| !permanent.hasSubtype(planeswalkerSubType, game)) {
return false;
}
this.getEffects().setValue("stackAbility", stackAbility);
this.getEffects().setValue("stackObject", stackAbility);
return true;
}
}

View file

@ -4,32 +4,32 @@ import mage.abilities.Ability;
import mage.abilities.effects.OneShotEffect;
import mage.constants.Outcome;
import mage.game.Game;
import mage.game.stack.StackAbility;
import mage.game.stack.StackObject;
import mage.players.Player;
/**
* @author TheElk801
*/
public class CopyStackAbilityEffect extends OneShotEffect {
public class CopyStackObjectEffect extends OneShotEffect {
public CopyStackAbilityEffect() {
public CopyStackObjectEffect() {
super(Outcome.Copy);
staticText = "copy that ability. You may choose new targets for the copy";
}
private CopyStackAbilityEffect(final CopyStackAbilityEffect effect) {
private CopyStackObjectEffect(final CopyStackObjectEffect effect) {
super(effect);
}
@Override
public CopyStackAbilityEffect copy() {
return new CopyStackAbilityEffect(this);
public CopyStackObjectEffect copy() {
return new CopyStackObjectEffect(this);
}
@Override
public boolean apply(Game game, Ability source) {
Player controller = game.getPlayer(source.getControllerId());
StackAbility ability = (StackAbility) getValue("stackAbility");
StackObject ability = (StackObject) getValue("stackObject");
if (controller == null || ability == null) {
return false;
}

View file

@ -1,7 +1,7 @@
package mage.game.command.emblems;
import mage.abilities.TriggeredAbilityImpl;
import mage.abilities.effects.common.CopyStackAbilityEffect;
import mage.abilities.effects.common.CopyStackObjectEffect;
import mage.abilities.mana.ActivatedManaAbilityImpl;
import mage.constants.Zone;
import mage.game.Game;
@ -28,7 +28,7 @@ public final class RowanKenrithEmblem extends Emblem {
class RowanKenrithEmblemTriggeredAbility extends TriggeredAbilityImpl {
RowanKenrithEmblemTriggeredAbility() {
super(Zone.COMMAND, new CopyStackAbilityEffect(), false);
super(Zone.COMMAND, new CopyStackObjectEffect(), false);
}
private RowanKenrithEmblemTriggeredAbility(final RowanKenrithEmblemTriggeredAbility ability) {
@ -54,7 +54,7 @@ class RowanKenrithEmblemTriggeredAbility extends TriggeredAbilityImpl {
if (stackAbility == null || stackAbility.getStackAbility() instanceof ActivatedManaAbilityImpl) {
return false;
}
this.getEffects().setValue("stackAbility", stackAbility);
this.getEffects().setValue("stackObject", stackAbility);
return true;
}