From 455cca07957554241bae0318eb839c33e8772bf9 Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Tue, 1 Apr 2014 00:06:52 +0200 Subject: [PATCH] Minor changes to tool tip text generation and token image loading. --- Mage.Sets/src/mage/sets/magic2014/MoltenBirth.java | 3 +++ .../abilities/effects/common/PutOnLibrarySourceEffect.java | 2 +- Mage/src/mage/cards/repository/CardRepository.java | 2 +- Mage/src/mage/game/permanent/token/ZombieToken.java | 3 +-- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Mage.Sets/src/mage/sets/magic2014/MoltenBirth.java b/Mage.Sets/src/mage/sets/magic2014/MoltenBirth.java index 32e6fa3d12..a42e3da094 100644 --- a/Mage.Sets/src/mage/sets/magic2014/MoltenBirth.java +++ b/Mage.Sets/src/mage/sets/magic2014/MoltenBirth.java @@ -27,6 +27,7 @@ */ package mage.sets.magic2014; +import java.util.Random; import java.util.UUID; import mage.MageInt; import mage.ObjectColor; @@ -105,6 +106,8 @@ class ElementalToken extends Token { public ElementalToken() { super("Elemental", "1/1 red Elemental creature"); + this.setOriginalExpansionSetCode("M14"); + this.setTokenType(new Random().nextInt(2) + 1); cardType.add(CardType.CREATURE); color = ObjectColor.RED; subtype.add("Elemental"); diff --git a/Mage/src/mage/abilities/effects/common/PutOnLibrarySourceEffect.java b/Mage/src/mage/abilities/effects/common/PutOnLibrarySourceEffect.java index 205f5ec04a..f91b79f1c7 100644 --- a/Mage/src/mage/abilities/effects/common/PutOnLibrarySourceEffect.java +++ b/Mage/src/mage/abilities/effects/common/PutOnLibrarySourceEffect.java @@ -97,7 +97,7 @@ public class PutOnLibrarySourceEffect extends OneShotEffect cardDao; diff --git a/Mage/src/mage/game/permanent/token/ZombieToken.java b/Mage/src/mage/game/permanent/token/ZombieToken.java index 18be8a6af8..029881cb76 100644 --- a/Mage/src/mage/game/permanent/token/ZombieToken.java +++ b/Mage/src/mage/game/permanent/token/ZombieToken.java @@ -47,8 +47,7 @@ public class ZombieToken extends Token { super("Zombie", "2/2 black Zombie creature token"); this.setOriginalExpansionSetCode(expansionSetCode); if (expansionSetCode.equals("ISD")) { - Random random = new Random(); - this.setTokenType(random.nextInt(3) + 1); + this.setTokenType(new Random().nextInt(3) + 1); } cardType.add(CardType.CREATURE); color = ObjectColor.BLACK;