mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 18:28:00 +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
|
// return stolen spells
|
||||||
if (c.isInZone(ZoneType.Stack)) {
|
if (c.isInZone(ZoneType.Stack)) {
|
||||||
SpellAbilityStackInstance si = getStack().getInstanceMatchingSpellAbilityID(c.getCastSA());
|
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())) {
|
if (c.getController().equals(p) && !(c.isPlane() || c.isPhenomenon())) {
|
||||||
getAction().exile(c, null, null);
|
getAction().exile(c, null, null);
|
||||||
|
|||||||
Reference in New Issue
Block a user