mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 13:02:06 -08:00
Add 2 unstable cards.
This commit is contained in:
parent
6c643fdbd7
commit
f39a0d4a77
5 changed files with 229 additions and 15 deletions
|
|
@ -74,19 +74,8 @@ public class RollDiceEffect extends OneShotEffect {
|
|||
Player controller = game.getPlayer(source.getControllerId());
|
||||
MageObject mageObject = game.getObject(source.getSourceId());
|
||||
if (controller != null && mageObject != null) {
|
||||
boolean result = true;
|
||||
for (Effect effect : executingEffects) {
|
||||
int rolled = controller.rollDice(game, numSides);
|
||||
effect.setTargetPointer(this.targetPointer);
|
||||
effect.setValue("rolled", rolled);
|
||||
this.setValue("rolled", rolled);
|
||||
if (effect instanceof OneShotEffect) {
|
||||
result &= effect.apply(game, source);
|
||||
} else {
|
||||
game.addEffect((ContinuousEffect) effect, source);
|
||||
}
|
||||
}
|
||||
return result;
|
||||
controller.rollDice(game, numSides);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
|
@ -96,7 +85,7 @@ public class RollDiceEffect extends OneShotEffect {
|
|||
if (!staticText.isEmpty()) {
|
||||
return staticText;
|
||||
}
|
||||
StringBuilder sb = new StringBuilder("Roll a " + numSides + " sided dice and then ").append(executingEffects.getText(mode));
|
||||
StringBuilder sb = new StringBuilder("Roll a " + numSides + " sided dice");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -72,7 +72,7 @@ public enum SubType {
|
|||
BITH("Bith", SubTypeSet.CreatureType, true), // Star Wars
|
||||
BLINKMOTH("Blinkmoth", SubTypeSet.CreatureType),
|
||||
BOAR("Boar", SubTypeSet.CreatureType),
|
||||
BRAINIAC("Brainiac", SubTypeSet.CreatureType),
|
||||
BRAINIAC("Brainiac", SubTypeSet.CreatureType, true), // Unstable
|
||||
BRINGER("Bringer", SubTypeSet.CreatureType),
|
||||
BRUSHWAGG("Brushwagg", SubTypeSet.CreatureType),
|
||||
// C
|
||||
|
|
@ -269,6 +269,7 @@ public enum SubType {
|
|||
SAPROLING("Saproling", SubTypeSet.CreatureType),
|
||||
SATYR("Satyr", SubTypeSet.CreatureType),
|
||||
SCARECROW("Scarecrow", SubTypeSet.CreatureType),
|
||||
SCIENTIST("Scientist", SubTypeSet.CreatureType, true), // Unstable
|
||||
SCION("Scion", SubTypeSet.CreatureType),
|
||||
SCORPION("Scorpion", SubTypeSet.CreatureType),
|
||||
SCOUT("Scout", SubTypeSet.CreatureType),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue