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