mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
Trigger.meetsRequirementsOnTriggeredObjects support "Condition$ LifePaid"
This commit is contained in:
@@ -373,6 +373,11 @@ public abstract class Trigger extends TriggerReplacementBase {
|
||||
final Card moved = (Card) runParams.get(AbilityKey.Card);
|
||||
if (null != moved && !moved.isOptionalCostPaid(OptionalCost.AltCost))
|
||||
return false;
|
||||
} else if ("LifePaid".equals(condition)) {
|
||||
final SpellAbility trigSA = (SpellAbility) runParams.get(AbilityKey.CastSA);
|
||||
if (trigSA != null && trigSA.getAmountLifePaid() <= 0) {
|
||||
return false;
|
||||
}
|
||||
} else if ("NoOpponentHasMoreLifeThanAttacked".equals(condition)) {
|
||||
GameEntity attacked = (GameEntity) runParams.get(AbilityKey.Attacked);
|
||||
if (attacked == null) {
|
||||
|
||||
Reference in New Issue
Block a user