mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 18:58:00 +00:00
Fix crash when a player dies with a card on the stack
This commit is contained in:
@@ -902,8 +902,10 @@ public class Game {
|
||||
// return stolen spells
|
||||
if (c.isInZone(ZoneType.Stack)) {
|
||||
SpellAbilityStackInstance si = getStack().getInstanceMatchingSpellAbilityID(c.getCastSA());
|
||||
if (si != null) {
|
||||
si.setActivatingPlayer(c.getController());
|
||||
}
|
||||
}
|
||||
if (c.getController().equals(p) && !(c.isPlane() || c.isPhenomenon())) {
|
||||
getAction().exile(c, null, null);
|
||||
triggerList.put(ZoneType.Battlefield, c.getZone().getZoneType(), c);
|
||||
|
||||
Reference in New Issue
Block a user