Skip to content

Commit

Permalink
fix Magar modal crash
Browse files Browse the repository at this point in the history
  • Loading branch information
Northmoc committed Nov 24, 2024
1 parent 4d21db9 commit 42bc796
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3010,6 +3010,7 @@ public static final List<SpellAbility> getSpellsFromPlayEffect(final Card tgtCar
}

for (SpellAbility s : list) {
if (s == null) continue;
if (s.isLandAbility()) {
s.setActivatingPlayer(controller);
// CR 305.3
Expand Down
4 changes: 4 additions & 0 deletions forge-game/src/main/java/forge/game/card/CardCopyService.java
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,10 @@ public Card getLKICopy(Map<Integer, Card> cachedMap) {
newCopy.getState(CardStateName.Original).copyFrom(copyFrom.getState(CardStateName.Original), true);
newCopy.addAlternateState(CardStateName.Transformed, false);
newCopy.getState(CardStateName.Transformed).copyFrom(copyFrom.getState(CardStateName.Transformed), true);
} else if (copyFrom.isModal()) {
newCopy.getState(CardStateName.Original).copyFrom(copyFrom.getState(CardStateName.Original), true);
newCopy.addAlternateState(CardStateName.Modal, false);
newCopy.getState(CardStateName.Modal).copyFrom(copyFrom.getState(CardStateName.Modal), true);
} else if (copyFrom.isAdventureCard()) {
newCopy.getState(CardStateName.Original).copyFrom(copyFrom.getState(CardStateName.Original), true);
newCopy.addAlternateState(CardStateName.Adventure, false);
Expand Down

0 comments on commit 42bc796

Please sign in to comment.