Fix Verrak

This commit is contained in:
tool4EvEr
2023-01-19 20:15:06 +01:00
parent c8a55d953b
commit e0fec88cf2
5 changed files with 4 additions and 6 deletions

View File

@@ -128,6 +128,7 @@ public class ComputerUtil {
if (!sa.isCopied()) {
sa.resetPaidHash();
sa.setPaidLife(0);
}
sa = GameActionUtil.addExtraKeywordCost(sa);

View File

@@ -1802,11 +1802,6 @@ public class AbilityUtils {
final SpellAbility root = (SpellAbility) sa.getRootAbility().getTriggeringObject(AbilityKey.SpellAbility);
return root == null ? 0 : root.getTotalManaSpent();
}
// Count$TriggeredLifeSpent
if (sq[0].equals("TriggeredLifeSpent")) {
final SpellAbility root = (SpellAbility) sa.getRootAbility().getTriggeringObject(AbilityKey.SpellAbility);
return root == null ? 0 : root.getAmountLifePaid();
}
// Count$ManaColorsPaid
if (sq[0].equals("ManaColorsPaid")) {

View File

@@ -287,6 +287,7 @@ public class TriggerSpellAbilityCastOrCopy extends Trigger {
}
sa.setTriggeringObject(AbilityKey.SpellAbilityTargets, saTargets);
}
sa.setTriggeringObject(AbilityKey.LifeAmount, castSA.getAmountLifePaid());
sa.setTriggeringObjectsFrom(
runParams,
AbilityKey.Player,

View File

@@ -7,5 +7,5 @@ K:Deathtouch
K:Lifelink
T:Mode$ AbilityCast | ValidActivatingPlayer$ You | ValidSA$ SpellAbility.nonManaAbility | Condition$ LifePaid | TriggerZones$ Battlefield | Execute$ TrigCopySpell | TriggerDescription$ Whenever you activate an ability that isn't a mana ability, if life was paid to activate it, you may pay that much life again. If you do, copy that ability. You may choose new targets for the copy.
SVar:TrigCopySpell:AB$ CopySpellAbility | Cost$ PayLife<X> | Defined$ TriggeredSpellAbility | MayChooseTarget$ True
SVar:X:Count$TriggeredLifeSpent
SVar:X:TriggerCount$LifeAmount
Oracle:Flying, deathtouch, lifelink\nWhenever you activate an ability that isn't a mana ability, if life was paid to activate it, you may pay that much life again. If you do, copy that ability. You may choose new targets for the copy.

View File

@@ -94,6 +94,7 @@ public class HumanPlaySpellAbility {
if (!ability.isCopied()) {
ability.resetPaidHash();
ability.setPaidLife(0);
}
ability = GameActionUtil.addExtraKeywordCost(ability);