mirror of
https://github.com/correl/mage.git
synced 2025-01-12 19:25:44 +00:00
* Some minor changes.
This commit is contained in:
parent
692fe8046e
commit
4ca5909840
3 changed files with 2 additions and 10 deletions
|
@ -59,7 +59,7 @@ public class CursedScroll extends CardImpl {
|
|||
super(ownerId, 271, "Cursed Scroll", Rarity.RARE, new CardType[]{CardType.ARTIFACT}, "{1}");
|
||||
this.expansionSetCode = "TMP";
|
||||
|
||||
// {3}, {tap}: Name a card. Reveal a card at random from your hand. If it's the named card, Cursed Scroll deals 2 damage to target creature or player.
|
||||
// {3}, {T}: Name a card. Reveal a card at random from your hand. If it's the named card, Cursed Scroll deals 2 damage to target creature or player.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new NameACardEffect(NameACardEffect.TypeOfName.ALL), new ManaCostsImpl("{3}"));
|
||||
ability.addEffect(new CursedScrollEffect());
|
||||
ability.addCost(new TapSourceCost());
|
||||
|
|
|
@ -81,15 +81,6 @@ public class Deck implements Serializable {
|
|||
Collections.sort(sbCardNames);
|
||||
String deckString = deckCardNames.toString() + sbCardNames.toString();
|
||||
deck.setDeckHashCode(DeckUtil.fixedHash(deckString));
|
||||
// try{
|
||||
// MessageDigest messageDigest = MessageDigest.getInstance("SHA-256");
|
||||
// messageDigest.update(deckString.getBytes());
|
||||
// String encryptedString = new String(messageDigest.digest());
|
||||
// deck.setDeckHashCode(encryptedString.hashCode());
|
||||
// }
|
||||
// catch (NoSuchAlgorithmException e) {
|
||||
// // nothing
|
||||
// }
|
||||
return deck;
|
||||
}
|
||||
|
||||
|
|
|
@ -386,6 +386,7 @@ public enum CardRepository {
|
|||
|
||||
return cardDao.query(queryBuilder.prepare());
|
||||
} catch (SQLException ex) {
|
||||
Logger.getLogger(CardRepository.class).error("Error during execution of card repository query statement", ex);
|
||||
}
|
||||
return new ArrayList<>();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue