mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 04:52:07 -08:00
[SOI] Fixed some cards.
This commit is contained in:
parent
4e94de6ac5
commit
04c8351712
9 changed files with 322 additions and 23 deletions
|
|
@ -135,17 +135,21 @@ public class BeginningOfEndStepTriggeredAbility extends TriggeredAbilityImpl {
|
|||
sb.insert(0, "you may ");
|
||||
}
|
||||
}
|
||||
String abilityWordRule = "";
|
||||
if (abilityWord != null) {
|
||||
abilityWordRule = "<i>" + abilityWord.toString() + "</i> &mdash ";
|
||||
}
|
||||
switch (targetController) {
|
||||
case YOU:
|
||||
return sb.insert(0, generateConditionString()).insert(0, "At the beginning of your end step, ").toString();
|
||||
return sb.insert(0, generateConditionString()).insert(0, abilityWordRule + "At the beginning of your end step, ").toString();
|
||||
case NEXT:
|
||||
return sb.insert(0, generateConditionString()).insert(0, "At the beginning of the end step, ").toString();
|
||||
return sb.insert(0, generateConditionString()).insert(0, abilityWordRule + "At the beginning of the end step, ").toString();
|
||||
case OPPONENT:
|
||||
return sb.insert(0, generateConditionString()).insert(0, "At the beginning of each opponent's end step, ").toString();
|
||||
return sb.insert(0, generateConditionString()).insert(0, abilityWordRule + "At the beginning of each opponent's end step, ").toString();
|
||||
case ANY:
|
||||
return sb.insert(0, generateConditionString()).insert(0, "At the beginning of each end step, ").toString();
|
||||
return sb.insert(0, generateConditionString()).insert(0, abilityWordRule + "At the beginning of each end step, ").toString();
|
||||
case CONTROLLER_ATTACHED_TO:
|
||||
return sb.insert(0, generateConditionString()).insert(0, "At the beginning of the end step of enchanted creature's controller, ").toString();
|
||||
return sb.insert(0, generateConditionString()).insert(0, abilityWordRule + "At the beginning of the end step of enchanted creature's controller, ").toString();
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -61,4 +61,10 @@ public class DeliriumCondition implements Condition {
|
|||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "if there are four or more card types among cards in your graveyard";
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -24,13 +24,12 @@
|
|||
* The views and conclusions contained in the software and documentation are those of the
|
||||
* authors and should not be interpreted as representing official policies, either expressed
|
||||
* or implied, of BetaSteward_at_googlemail.com.
|
||||
*/
|
||||
|
||||
*/
|
||||
package mage.abilities.effects.common;
|
||||
|
||||
import mage.constants.Outcome;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.effects.OneShotEffect;
|
||||
import mage.constants.Outcome;
|
||||
import mage.game.Game;
|
||||
import mage.game.permanent.Permanent;
|
||||
|
||||
|
|
@ -44,7 +43,8 @@ public class TransformSourceEffect extends OneShotEffect {
|
|||
private boolean fromDayToNight;
|
||||
|
||||
/**
|
||||
* @param fromDayToNight Defines whether we transform from "day" side to "night" or vice versa.
|
||||
* @param fromDayToNight Defines whether we transform from "day" side to
|
||||
* "night" or vice versa.
|
||||
*/
|
||||
public TransformSourceEffect(boolean fromDayToNight) {
|
||||
this(fromDayToNight, false);
|
||||
|
|
@ -75,20 +75,21 @@ public class TransformSourceEffect extends OneShotEffect {
|
|||
if (permanent.canTransform()) {
|
||||
// check not to transform twice the same side
|
||||
if (permanent.isTransformed() != fromDayToNight) {
|
||||
if (withoutTrigger) {
|
||||
if (withoutTrigger) {
|
||||
permanent.setTransformed(fromDayToNight);
|
||||
} else {
|
||||
permanent.transform(game);
|
||||
}
|
||||
if (!game.isSimulation()) {
|
||||
if (fromDayToNight) {
|
||||
game.informPlayers(new StringBuilder(permanent.getName()).append(" transforms into ").append(permanent.getSecondCardFace().getName()).toString());
|
||||
game.informPlayers(permanent.getIdName() + " transforms into " + permanent.getSecondCardFace().getIdName());
|
||||
} else {
|
||||
game.informPlayers(new StringBuilder(permanent.getSecondCardFace().getName()).append(" transforms into ").append(permanent.getName()).toString());
|
||||
game.informPlayers(permanent.getSecondCardFace().getIdName() + " transforms into " + permanent.getIdName());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue