mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +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.
|
||||
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);
|
||||
Effect effect2 = new IsperiaTheInscrutableEffect();
|
||||
ability.addEffect(effect2);
|
||||
|
@ -106,9 +105,8 @@ class IsperiaTheInscrutableEffect extends OneShotEffect {
|
|||
@Override
|
||||
public boolean apply(Game game, Ability 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);
|
||||
if (player != null && sourceObject != null && object instanceof String) {
|
||||
if (player != null && object instanceof String) {
|
||||
String namedCard = (String) object;
|
||||
for (Card card : player.getHand().getCards(game)) {
|
||||
if (card != null && card.getName().equals(namedCard)) {
|
||||
|
|
Loading…
Reference in a new issue