mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
- Ensure that a card is returned to its original state when it's being moved from the battlefield (fixes e.g. a Manifested tapland returning to hand that then causes a crash when that same land is played from hand later).
- This is a little experimental, please test for possible issues!
This commit is contained in:
@@ -177,6 +177,10 @@ public class GameAction {
|
||||
|
||||
copied.setUnearthed(c.isUnearthed());
|
||||
copied.setTapped(false);
|
||||
if (fromBattlefield) {
|
||||
// when a card leaves the battlefield, ensure it's in its original state
|
||||
copied.setState(CardStateName.Original, false);
|
||||
}
|
||||
for (final Trigger trigger : copied.getTriggers()) {
|
||||
trigger.setHostCard(copied);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user