- Fixed Oblivion Ring (by changing getCardState to search all zones for the card).

This commit is contained in:
Sloth
2011-09-24 11:30:24 +00:00
parent 055ceec0cc
commit a370b638bf
2 changed files with 1 additions and 12 deletions

View File

@@ -197,13 +197,8 @@ public abstract class AllZoneUtil {
* @return a {@link forge.Card} object. * @return a {@link forge.Card} object.
*/ */
public static Card getCardState(final Card card) { public static Card getCardState(final Card card) {
PlayerZone zone = AllZone.getZoneOf(card);
//for tokens
if (zone == null) {
return null;
}
for (Card c : zone.getCards()) { for (Card c : AllZoneUtil.getCardsInGame()) {
if (card.equals(c)) { if (card.equals(c)) {
return c; return c;
} }

View File

@@ -427,12 +427,6 @@ public class TriggerHandler {
if (host == null) { if (host == null) {
host = regtrig.getHostCard(); host = regtrig.getHostCard();
} }
// This will fix the Oblivion Ring issue, but is this the right fix?
for (Object o : regtrig.getHostCard().getRemembered()) {
if (!host.getRemembered().contains(o)) {
host.addRemembered(o);
}
}
sa[0] = regtrig.getOverridingAbility(); sa[0] = regtrig.getOverridingAbility();
if (sa[0] == null) { if (sa[0] == null) {