* Chief Engineer - Fixed that convoke did not work for Artifacts while Chief Engineer was on the battlefield.

This commit is contained in:
LevelX2 2015-05-11 19:17:38 +02:00 committed by Luna Skyrise
parent 70f152feb1
commit 1067ba296b
4 changed files with 58 additions and 45 deletions

View file

@ -246,7 +246,8 @@ public abstract class AbilityImpl implements Ability {
if (controller == null) {
return false;
}
game.applyEffects();
/* 20130201 - 601.2b
* If the spell is modal the player announces the mode choice (see rule 700.2).
*/

View file

@ -251,8 +251,9 @@ class ConvokeEffect extends OneShotEffect {
manaPool.unlockManaType(ManaType.COLORLESS);
manaName = "colorless";
}
if (!game.isSimulation())
if (!game.isSimulation()) {
game.informPlayers("Convoke: " + controller.getLogName() + " taps " + perm.getLogName() + " to pay one " + manaName + " mana");
}
}
}

View file

@ -13,6 +13,7 @@ import java.util.UUID;
import mage.MageObject;
import mage.abilities.Ability;
import mage.abilities.costs.mana.AlternateManaPaymentAbility;
import mage.cards.Card;
import mage.game.Game;
/**
@ -351,8 +352,8 @@ public class ManaUtil {
public static String addSpecialManaPayAbilities(Ability source, Game game, ManaCost unpaid) {
// check for special mana payment possibilities
MageObject mageObject = source.getSourceObject(game);
if (mageObject != null) {
for (Ability ability :mageObject.getAbilities()) {
if (mageObject instanceof Card) {
for (Ability ability :((Card)mageObject).getAbilities(game)) {
if (ability instanceof AlternateManaPaymentAbility) {
((AlternateManaPaymentAbility) ability).addSpecialAction(source, game, unpaid);
}