forked from External/mage
New cards
[CHK] BloodthirstyOgre / HorobiDeathsWail / KumanosPupil / MyojinOfInfiniteRage / MyojinOfLifesWeb / MyojinOfNightsReach / MyojinOfSeeingWinds / OniPossession / PainwrackerOni Framework PutOntoBattlefieldTargetEffect - new effect SetCardSubtypeAttachedEffect - added constuctor with list of types TargetControlledCreaturePermanent - added constructor with "required" and "filter" DrawCardControllerEffect / SacrificeTargetEffect - improved text generation CountersCount - added flag to return the number of counters as negative value
This commit is contained in:
parent
182d636078
commit
e88a2a199f
16 changed files with 1153 additions and 23 deletions
|
|
@ -47,6 +47,11 @@ public class SacrificeTargetEffect extends OneShotEffect<SacrificeTargetEffect>
|
|||
super(Outcome.Sacrifice);
|
||||
}
|
||||
|
||||
public SacrificeTargetEffect(String text) {
|
||||
this();
|
||||
staticText = text;
|
||||
}
|
||||
|
||||
public SacrificeTargetEffect(final SacrificeTargetEffect effect) {
|
||||
super(effect);
|
||||
}
|
||||
|
|
@ -71,10 +76,13 @@ public class SacrificeTargetEffect extends OneShotEffect<SacrificeTargetEffect>
|
|||
|
||||
@Override
|
||||
public String getText(Mode mode) {
|
||||
if (mode.getTargets().get(0).getNumberOfTargets() == 1)
|
||||
return "The controller of target " + mode.getTargets().get(0).getTargetName() + " sacrifices it";
|
||||
else
|
||||
return "The controller of " + mode.getTargets().get(0).getNumberOfTargets() + " target " + mode.getTargets().get(0).getTargetName() + " sacrifices it";
|
||||
}
|
||||
if (staticText.equals("")) {
|
||||
if (mode.getTargets().get(0).getNumberOfTargets() == 1)
|
||||
return "The controller of target " + mode.getTargets().get(0).getTargetName() + " sacrifices it";
|
||||
else
|
||||
return "The controller of " + mode.getTargets().get(0).getNumberOfTargets() + " target " + mode.getTargets().get(0).getTargetName() + " sacrifices it";
|
||||
}
|
||||
return staticText;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue