mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 18:58:00 +00:00
- Fixed Vendetta and Devour in Shadow calculating LKI toughness.
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
Name:Devour in Shadow
|
||||
ManaCost:B B
|
||||
Types:Instant
|
||||
A:SP$ Destroy | Cost$ B B | ValidTgts$ Creature | TgtPrompt$ Select target creature | NoRegen$ True | SubAbility$ DBLoseLife | SpellDescription$ Destroy target creature. It can't be regenerated. You lose life equal to that creature's toughness.
|
||||
SVar:DBLoseLife:DB$LoseLife | Defined$ You | LifeAmount$ X | References$ X
|
||||
SVar:X:Targeted$CardToughness
|
||||
A:SP$ Destroy | Cost$ B B | ValidTgts$ Creature | TgtPrompt$ Select target creature | NoRegen$ True | RememberLKI$ True | SubAbility$ DBLoseLife | SpellDescription$ Destroy target creature. It can't be regenerated. You lose life equal to that creature's toughness.
|
||||
SVar:DBLoseLife:DB$ LoseLife | Defined$ You | LifeAmount$ X | References$ X | SubAbility$ DBCleanup
|
||||
SVar:DBCleanup:DB$ Cleanup | ClearRemembered$ True
|
||||
SVar:X:RememberedLKI$CardToughness
|
||||
SVar:Picture:http://resources.wizards.com/magic/cards/5dn/en-us/card50210.jpg
|
||||
Oracle:Destroy target creature. It can't be regenerated. You lose life equal to that creature's toughness.
|
||||
@@ -1,8 +1,9 @@
|
||||
Name:Vendetta
|
||||
ManaCost:B
|
||||
Types:Instant
|
||||
A:SP$ Destroy | Cost$ B | ValidTgts$ Creature.nonBlack | TgtPrompt$ Select target nonblack creature | NoRegen$ True | SubAbility$ DBLoseLife | SpellDescription$ Destroy target nonblack creature. It can't be regenerated. You lose life equal to that creature's toughness.
|
||||
SVar:DBLoseLife:DB$LoseLife | Defined$ You | LifeAmount$ X
|
||||
SVar:X:Targeted$CardToughness
|
||||
A:SP$ Destroy | Cost$ B | ValidTgts$ Creature.nonBlack | TgtPrompt$ Select target nonblack creature | NoRegen$ True | RememberLKI$ True | SubAbility$ DBLoseLife | SpellDescription$ Destroy target nonblack creature. It can't be regenerated. You lose life equal to that creature's toughness.
|
||||
SVar:DBLoseLife:DB$ LoseLife | Defined$ You | LifeAmount$ X | References$ X | SubAbility$ DBCleanup
|
||||
SVar:DBCleanup:DB$ Cleanup | ClearRemembered$ True
|
||||
SVar:X:RememberedLKI$CardToughness
|
||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/vendetta.jpg
|
||||
Oracle:Destroy target nonblack creature. It can't be regenerated. You lose life equal to that creature's toughness.
|
||||
@@ -397,23 +397,19 @@ public class AbilityUtils {
|
||||
if (calcX[0].startsWith("Remembered")) {
|
||||
// Add whole Remembered list to handlePaid
|
||||
final List<Card> list = new ArrayList<Card>();
|
||||
Card newCard = card;
|
||||
if (card.getRemembered().isEmpty()) {
|
||||
final Card newCard = game.getCardState(card);
|
||||
for (final Object o : newCard.getRemembered()) {
|
||||
if (o instanceof Card) {
|
||||
list.add(game.getCardState((Card) o));
|
||||
}
|
||||
}
|
||||
newCard = game.getCardState(card);
|
||||
}
|
||||
|
||||
if (calcX[0].endsWith("LKI")) { // last known information
|
||||
for (final Object o : card.getRemembered()) {
|
||||
for (final Object o : newCard.getRemembered()) {
|
||||
if (o instanceof Card) {
|
||||
list.add((Card) o);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
for (final Object o : card.getRemembered()) {
|
||||
for (final Object o : newCard.getRemembered()) {
|
||||
if (o instanceof Card) {
|
||||
list.add(game.getCardState((Card) o));
|
||||
}
|
||||
|
||||
@@ -100,9 +100,13 @@ public class DestroyEffect extends SpellAbilityEffect {
|
||||
destroyed = game.getAction().destroyNoRegeneration(tgtC, sa);
|
||||
} else {
|
||||
destroyed = game.getAction().destroy(tgtC, sa);
|
||||
} if (destroyed && remDestroyed) {
|
||||
}
|
||||
if (destroyed && remDestroyed) {
|
||||
card.addRemembered(tgtC);
|
||||
}
|
||||
if (sa.hasParam("RememberLKI")) {
|
||||
card.addRemembered(CardUtil.getLKICopy(tgtC));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user