mirror of
https://github.com/correl/mage.git
synced 2024-12-26 11:09:27 +00:00
Fixed missing effects of Martial Glory.
This commit is contained in:
parent
96f0e87aea
commit
f9e3409758
1 changed files with 2 additions and 24 deletions
|
@ -63,6 +63,7 @@ public class MartialGlory extends CardImpl<MartialGlory> {
|
|||
effect.setText("Target creature gets +3/+0 until end of turn");
|
||||
Target target = new TargetCreaturePermanent(new FilterCreaturePermanent("first creature"));
|
||||
target.setRequired(true);
|
||||
this.getSpellAbility().addEffect(effect);
|
||||
this.getSpellAbility().addTarget(target);
|
||||
|
||||
// Target creature gets +0/+3 until end of turn.
|
||||
|
@ -71,6 +72,7 @@ public class MartialGlory extends CardImpl<MartialGlory> {
|
|||
effect2.setTargetPointer(SecondTargetPointer.getInstance());
|
||||
target = new TargetCreaturePermanent(new FilterCreaturePermanent("second creature (can be the same as the first)"));
|
||||
target.setRequired(true);
|
||||
this.getSpellAbility().addEffect(effect2);
|
||||
this.getSpellAbility().addTarget(target);
|
||||
|
||||
|
||||
|
@ -85,27 +87,3 @@ public class MartialGlory extends CardImpl<MartialGlory> {
|
|||
return new MartialGlory(this);
|
||||
}
|
||||
}
|
||||
class MartialGloryEffect1 extends OneShotEffect<MartialGloryEffect1> {
|
||||
|
||||
public MartialGloryEffect1() {
|
||||
super(Outcome.BoostCreature);
|
||||
staticText = "Target creature gets +3/+0 until end of turn.";
|
||||
}
|
||||
|
||||
public MartialGloryEffect1(final MartialGloryEffect1 effect) {
|
||||
super(effect);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
ContinuousEffect effect = new BoostTargetEffect(3,0, Duration.EndOfTurn);
|
||||
effect.setTargetPointer(new FixedTarget(source.getTargets().get(0).getFirstTarget()));
|
||||
game.addEffect(effect, source);
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public MartialGloryEffect1 copy() {
|
||||
return new MartialGloryEffect1(this);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue