mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 04:08:01 +00:00
WithFlash: refactor into Static
This commit is contained in:
committed by
Michael Kamensky
parent
779da47dcf
commit
49e7f20a41
@@ -128,7 +128,7 @@ public class HumanPlaySpellAbility {
|
||||
human.incNumManaConversion();
|
||||
}
|
||||
|
||||
if (ability.isAbility() && ability instanceof AbilityActivated) {
|
||||
if (ability.isAbility() && ability.isActivatedAbility()) {
|
||||
final Map<String, String> params = Maps.newHashMap();
|
||||
params.put("ManaColorConversion", "Additive");
|
||||
|
||||
@@ -151,6 +151,7 @@ public class HumanPlaySpellAbility {
|
||||
final boolean prerequisitesMet = announceValuesLikeX()
|
||||
&& announceType()
|
||||
&& (!mayChooseTargets || ability.setupTargets()) // if you can choose targets, then do choose them.
|
||||
&& ability.canCastTiming(human)
|
||||
&& (isFree || payment.payCost(new HumanCostDecision(controller, human, ability, ability.getHostCard())));
|
||||
|
||||
if (!prerequisitesMet) {
|
||||
|
||||
Reference in New Issue
Block a user