mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
- Fixed Oblivion Ring (by changing getCardState to search all zones for the card).
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user