mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +00:00
Fix Verrak
This commit is contained in:
@@ -128,6 +128,7 @@ public class ComputerUtil {
|
||||
|
||||
if (!sa.isCopied()) {
|
||||
sa.resetPaidHash();
|
||||
sa.setPaidLife(0);
|
||||
}
|
||||
|
||||
sa = GameActionUtil.addExtraKeywordCost(sa);
|
||||
|
||||
@@ -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")) {
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -94,6 +94,7 @@ public class HumanPlaySpellAbility {
|
||||
|
||||
if (!ability.isCopied()) {
|
||||
ability.resetPaidHash();
|
||||
ability.setPaidLife(0);
|
||||
}
|
||||
|
||||
ability = GameActionUtil.addExtraKeywordCost(ability);
|
||||
|
||||
Reference in New Issue
Block a user