mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +00:00
Removed code not needed from Isperia (#1003).
This commit is contained in:
parent
2390a7522f
commit
9dd5f66c64
1 changed files with 1 additions and 3 deletions
|
@ -68,7 +68,6 @@ public class IsperiaTheInscrutable extends CardImpl {
|
||||||
|
|
||||||
// Whenever Isperia the Inscrutable deals combat damage to a player, name a card. That player reveals his or her hand. If he or she reveals the named card, search your library for a creature card with flying, reveal it, put it into your hand, then shuffle your library.
|
// Whenever Isperia the Inscrutable deals combat damage to a player, name a card. That player reveals his or her hand. If he or she reveals the named card, search your library for a creature card with flying, reveal it, put it into your hand, then shuffle your library.
|
||||||
Effect effect1 = new NameACardEffect(NameACardEffect.TypeOfName.ALL);
|
Effect effect1 = new NameACardEffect(NameACardEffect.TypeOfName.ALL);
|
||||||
// you need to set the target pointer so you can get the
|
|
||||||
Ability ability = new DealsCombatDamageToAPlayerTriggeredAbility(effect1, true, true);
|
Ability ability = new DealsCombatDamageToAPlayerTriggeredAbility(effect1, true, true);
|
||||||
Effect effect2 = new IsperiaTheInscrutableEffect();
|
Effect effect2 = new IsperiaTheInscrutableEffect();
|
||||||
ability.addEffect(effect2);
|
ability.addEffect(effect2);
|
||||||
|
@ -106,9 +105,8 @@ class IsperiaTheInscrutableEffect extends OneShotEffect {
|
||||||
@Override
|
@Override
|
||||||
public boolean apply(Game game, Ability source) {
|
public boolean apply(Game game, Ability source) {
|
||||||
Player player = game.getPlayer(getTargetPointer().getFirst(game, source));
|
Player player = game.getPlayer(getTargetPointer().getFirst(game, source));
|
||||||
MageObject sourceObject = game.getObject(source.getSourceId());
|
|
||||||
Object object = (String) game.getState().getValue(source.getSourceId().toString() + NameACardEffect.INFO_KEY);
|
Object object = (String) game.getState().getValue(source.getSourceId().toString() + NameACardEffect.INFO_KEY);
|
||||||
if (player != null && sourceObject != null && object instanceof String) {
|
if (player != null && object instanceof String) {
|
||||||
String namedCard = (String) object;
|
String namedCard = (String) object;
|
||||||
for (Card card : player.getHand().getCards(game)) {
|
for (Card card : player.getHand().getCards(game)) {
|
||||||
if (card != null && card.getName().equals(namedCard)) {
|
if (card != null && card.getName().equals(namedCard)) {
|
||||||
|
|
Loading…
Reference in a new issue