mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 10:18:01 +00:00
- Fixed Animate Dead.
- Fixed Dance of the Dead description. - Added a couple related NPE prevention checks.
This commit is contained in:
@@ -156,7 +156,7 @@ public class ChangeZoneAllEffect extends SpellAbilityEffect {
|
||||
// Auras without Candidates stay in their current location
|
||||
if (c.isAura()) {
|
||||
final SpellAbility saAura = c.getFirstAttachSpell();
|
||||
if (!saAura.getTargetRestrictions().hasCandidates(saAura, false)) {
|
||||
if (saAura != null && !saAura.getTargetRestrictions().hasCandidates(saAura, false)) {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -555,11 +555,13 @@ public class ChangeZoneEffect extends SpellAbilityEffect {
|
||||
// location
|
||||
if (tgtC.isAura()) {
|
||||
final SpellAbility saAura = tgtC.getFirstAttachSpell();
|
||||
if (saAura != null) {
|
||||
saAura.setActivatingPlayer(sa.getActivatingPlayer());
|
||||
if (!saAura.getTargetRestrictions().hasCandidates(saAura, false)) {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
movedCard = game.getAction().moveTo(
|
||||
tgtC.getController().getZone(destination), tgtC, sa, null);
|
||||
|
||||
@@ -2161,7 +2161,7 @@ public class Card extends GameEntity implements Comparable<Card> {
|
||||
*/
|
||||
public final SpellAbility getFirstAttachSpell() {
|
||||
for (final SpellAbility sa : getSpells()) {
|
||||
if (sa.getApi() == ApiType.Attach) {
|
||||
if (sa.getApi() == ApiType.Attach && !sa.isSuppressed()) {
|
||||
return sa;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@ ManaCost:1 B
|
||||
Types:Enchantment Aura
|
||||
K:Enchant creature card in a graveyard
|
||||
A:SP$ Attach | Cost$ 1 B | ValidTgts$ Creature | TgtZone$ Graveyard | AILogic$ Reanimate
|
||||
T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Card.Self | Execute$ TrigReanimate | TriggerDescription$ When CARDNAME enters the battlefield, if it's on the battlefield, it loses "enchant creature card in a graveyard" and gains "enchant creature put onto the battlefield with CARDNAME." Put enchanted creature card onto the battlefield under your control and attach CARDNAME to it.
|
||||
T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Card.Self | Execute$ TrigReanimate | TriggerDescription$ When CARDNAME enters the battlefield, if it's on the battlefield, it loses "enchant creature card in a graveyard" and gains "enchant creature put onto the battlefield with CARDNAME." Put enchanted creature card onto the battlefield tapped under your control and attach CARDNAME to it.
|
||||
SVar:TrigReanimate:DB$ ChangeZone | Origin$ Graveyard | Destination$ Battlefield | Defined$ Enchanted | RememberChanged$ True | GainControl$ True | Tapped$ True | SubAbility$ DBAnimate
|
||||
SVar:DBAnimate:DB$ Animate | Defined$ Self | OverwriteSpells$ True | Abilities$ NewAttach | Keywords$ Enchant creature put onto the battlefield with CARDNAME | RemoveKeywords$ Enchant creature card in a graveyard | Permanent$ True | SubAbility$ DBAttach
|
||||
SVar:DBAttach:DB$ Attach | Defined$ Remembered
|
||||
|
||||
Reference in New Issue
Block a user