Remove lockedIn parameter from BoostTargetEffect. Fixes #9329 (#9334)

This commit is contained in:
Alex W. Jackson 2022-08-02 02:40:59 -04:00 committed by GitHub
parent 1a3d5923de
commit 7233061ae3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
133 changed files with 590 additions and 676 deletions

View file

@ -901,6 +901,16 @@ public final class CardUtil {
return sb.toString();
}
public static Outcome getBoostOutcome(DynamicValue power, DynamicValue toughness) {
if (toughness.getSign() < 0) {
return Outcome.Removal;
}
if (power.getSign() < 0) {
return Outcome.UnboostCreature;
}
return Outcome.BoostCreature;
}
public static boolean isSpliceAbility(Ability ability, Game game) {
if (ability instanceof SpellAbility) {
return ((SpellAbility) ability).getSpellAbilityType() == SpellAbilityType.SPLICE;