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