- 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.
*/
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)) {
return c;
}

View File

@@ -427,12 +427,6 @@ public class TriggerHandler {
if (host == null) {
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();
if (sa[0] == null) {