mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +00:00
- Fixed Boon Satyr (and possibly others) going straight to graveyard if bestowed onto a creature which then dies.
This commit is contained in:
@@ -815,14 +815,15 @@ public class GameAction {
|
|||||||
tgt = sa.getTargetRestrictions();
|
tgt = sa.getTargetRestrictions();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
boolean wasBestowed = c.isBestowed();
|
||||||
|
|
||||||
if (entity instanceof Card) {
|
if (entity instanceof Card) {
|
||||||
final Card perm = (Card) entity;
|
final Card perm = (Card) entity;
|
||||||
final ZoneType tgtZone = tgt.getZone().get(0);
|
final ZoneType tgtZone = tgt.getZone().get(0);
|
||||||
|
|
||||||
if (!perm.isInZone(tgtZone) || !perm.canBeEnchantedBy(c, true) || (perm.isPhasedOut() && !c.isPhasedOut())) {
|
if (!perm.isInZone(tgtZone) || !perm.canBeEnchantedBy(c, true) || (perm.isPhasedOut() && !c.isPhasedOut())) {
|
||||||
boolean bestowed = c.isBestowed();
|
|
||||||
c.unEnchantEntity(perm);
|
c.unEnchantEntity(perm);
|
||||||
if (!bestowed) {
|
if (!wasBestowed) {
|
||||||
moveToGraveyard(c);
|
moveToGraveyard(c);
|
||||||
}
|
}
|
||||||
checkAgain = true;
|
checkAgain = true;
|
||||||
@@ -844,7 +845,7 @@ public class GameAction {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (c.isInPlay() && !c.isEnchanting()) {
|
if (c.isInPlay() && !c.isEnchanting() && !wasBestowed) {
|
||||||
moveToGraveyard(c);
|
moveToGraveyard(c);
|
||||||
checkAgain = true;
|
checkAgain = true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user