mirror of
https://github.com/magefree/mage.git
synced 2025-12-28 22:42:03 -08:00
* Chief Engineer - Fixed that convoke did not work for Artifacts while Chief Engineer was on the battlefield.
This commit is contained in:
parent
70f152feb1
commit
1067ba296b
4 changed files with 58 additions and 45 deletions
|
|
@ -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).
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue