mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
free blocks option moved to PlayerControllerHuman
This commit is contained in:
@@ -13,9 +13,4 @@ public class PreferencesProvider implements Dependencies.PreferencesMethods {
|
||||
// TODO Auto-generated method stub
|
||||
return Singletons.getModel().getPreferences().getPrefBoolean(FPref.UI_MANABURN);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean areBlocksFree() {
|
||||
return Singletons.getModel().getPreferences().getPrefBoolean(FPref.MATCHPREF_PROMPT_FREE_BLOCKS);
|
||||
}
|
||||
}
|
||||
@@ -723,6 +723,10 @@ public class PlayerControllerHuman extends PlayerController {
|
||||
*/
|
||||
@Override
|
||||
public boolean payManaOptional(Card c, Cost cost, SpellAbility sa, String prompt, ManaPaymentPurpose purpose) {
|
||||
if ( sa == null && cost.isOnlyManaCost() && cost.getTotalMana().isZero()
|
||||
&& !Singletons.getModel().getPreferences().getPrefBoolean(FPref.MATCHPREF_PROMPT_FREE_BLOCKS))
|
||||
return true;
|
||||
|
||||
return HumanPlay.payCostDuringAbilityResolve(player, c, cost, sa, prompt);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user