mirror of
https://github.com/correl/mage.git
synced 2024-12-25 11:11:16 +00:00
* Summon the Pack - fixed that it gives black color to cards (#4905);
This commit is contained in:
parent
f7a4e75909
commit
721f37c5ae
2 changed files with 23 additions and 3 deletions
|
@ -115,7 +115,7 @@ class SummonThePackEffect extends OneShotEffect {
|
|||
message.append(c.getName()).append(" ");
|
||||
if (c != null && c.isCreature()) {
|
||||
message.append(" (creature card) ");
|
||||
ContinuousEffect effect2 = new BecomesBlackZombieAdditionEffect();
|
||||
ContinuousEffect effect2 = new BecomesBlackZombieAdditionEffect(false);
|
||||
effect2.setTargetPointer(new FixedTarget(c.getId()));
|
||||
game.addEffect(effect2, source);
|
||||
creatureCards.add(c);
|
||||
|
|
|
@ -38,13 +38,33 @@ import mage.game.permanent.Permanent;
|
|||
*/
|
||||
public class BecomesBlackZombieAdditionEffect extends ContinuousEffectImpl {
|
||||
|
||||
private boolean giveBlackColor = true;
|
||||
|
||||
public BecomesBlackZombieAdditionEffect() {
|
||||
super(Duration.Custom, Outcome.Neutral);
|
||||
staticText = "That creature is a black Zombie in addition to its other colors and types";
|
||||
this.giveBlackColor = true;
|
||||
updateText();
|
||||
}
|
||||
|
||||
public BecomesBlackZombieAdditionEffect(boolean giveBlackColor) {
|
||||
this();
|
||||
this.giveBlackColor = giveBlackColor;
|
||||
updateText();
|
||||
}
|
||||
|
||||
|
||||
public BecomesBlackZombieAdditionEffect(final BecomesBlackZombieAdditionEffect effect) {
|
||||
super(effect);
|
||||
this.giveBlackColor = effect.giveBlackColor;
|
||||
updateText();
|
||||
}
|
||||
|
||||
private void updateText() {
|
||||
if (this.giveBlackColor) {
|
||||
this.staticText = "That creature is a black Zombie in addition to its other colors and types";
|
||||
} else {
|
||||
this.staticText = "That creature is a Zombie in addition to its other types";
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -73,7 +93,7 @@ public class BecomesBlackZombieAdditionEffect extends ContinuousEffectImpl {
|
|||
}
|
||||
break;
|
||||
case ColorChangingEffects_5:
|
||||
if (sublayer == SubLayer.NA) {
|
||||
if (sublayer == SubLayer.NA && this.giveBlackColor) {
|
||||
creature.getColor(game).setBlack(true);
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue