mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 11:18:01 +00:00
Merge branch 'performancemode' into 'master'
Bandaid temporary performance preference to disable additional static abilities… See merge request core-developers/forge!558
This commit is contained in:
@@ -44,6 +44,12 @@ public abstract class Spell extends SpellAbility implements java.io.Serializable
|
||||
/** Constant <code>serialVersionUID=-7930920571482203460L</code>. */
|
||||
private static final long serialVersionUID = -7930920571482203460L;
|
||||
|
||||
private static boolean performanceMode = false;
|
||||
|
||||
public static void setPerformanceMode(boolean performanceMode){
|
||||
Spell.performanceMode=performanceMode;
|
||||
}
|
||||
|
||||
private boolean castFaceDown = false;
|
||||
|
||||
/**
|
||||
@@ -116,14 +122,14 @@ public abstract class Spell extends SpellAbility implements java.io.Serializable
|
||||
lkicheck = true;
|
||||
}
|
||||
|
||||
if (lkicheck) {
|
||||
if (!Spell.performanceMode && lkicheck) {
|
||||
game.getAction().checkStaticAbilities(false, Sets.newHashSet(card), new CardCollection(card));
|
||||
}
|
||||
|
||||
flash = card.withFlash(activator);
|
||||
|
||||
// reset static abilities
|
||||
if (lkicheck) {
|
||||
if (!Spell.performanceMode && lkicheck) {
|
||||
game.getAction().checkStaticAbilities(false);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user