Merge remote-tracking branch 'upstream/master' into fix-deck-editor-custom-editions-image-view

This commit is contained in:
leriomaggio
2021-05-31 19:25:20 +01:00
41 changed files with 105 additions and 59 deletions

View File

@@ -143,8 +143,9 @@ public class HumanPlaySpellAbility {
// This line makes use of short-circuit evaluation of boolean values, that is each subsequent argument
// is only executed or evaluated if the first argument does not suffice to determine the value of the expression
final boolean prerequisitesMet = announceValuesLikeX()
&& announceType()
// because of Selective Snare do announceType first
final boolean prerequisitesMet = announceType()
&& announceValuesLikeX()
&& (!mayChooseTargets || ability.setupTargets()) // if you can choose targets, then do choose them.
&& ability.canCastTiming(human)
&& ability.checkRestrictions(human)