mirror of
https://github.com/magefree/mage.git
synced 2026-01-10 04:42:07 -08:00
* Eldrazi Spawn Token - Select one of three possible token images by random.
This commit is contained in:
parent
9958248ff8
commit
5a12ef4aa3
1 changed files with 4 additions and 0 deletions
|
|
@ -28,6 +28,7 @@
|
|||
|
||||
package mage.game.permanent.token;
|
||||
|
||||
import java.util.Random;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Zone;
|
||||
import mage.MageInt;
|
||||
|
|
@ -49,6 +50,9 @@ public class EldraziSpawnToken extends Token {
|
|||
power = new MageInt(0);
|
||||
toughness = new MageInt(1);
|
||||
addAbility(new SimpleManaAbility(Zone.BATTLEFIELD, Mana.ColorlessMana, new SacrificeSourceCost()));
|
||||
this.setOriginalExpansionSetCode("ROE");
|
||||
// Get one of the three possible token images
|
||||
this.setTokenType(new Random().nextInt(3) + 1);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue