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.
|
* @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;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user