mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
rem warning,
force update of player-related into at end of phase.
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
package forge.card.abilityfactory.effects;
|
||||
|
||||
import forge.Card;
|
||||
import forge.card.abilityfactory.AbilityFactory;
|
||||
import forge.card.abilityfactory.SpellEffect;
|
||||
import forge.card.cardfactory.CardFactoryUtil;
|
||||
import forge.card.spellability.SpellAbility;
|
||||
|
||||
@@ -71,11 +71,6 @@ public class PhaseHandler extends MyObservable implements java.io.Serializable {
|
||||
/** The need to next phase. */
|
||||
private boolean isPlayerPriorityAllowed = false;
|
||||
|
||||
// This should only be true four times! that is for the initial nextPhases
|
||||
// in MyObservable
|
||||
/** The need to next phase init. */
|
||||
private int needToNextPhaseInit = 0;
|
||||
|
||||
private final GameState game;
|
||||
|
||||
public PhaseHandler(final GameState game0)
|
||||
@@ -428,6 +423,7 @@ public class PhaseHandler extends MyObservable implements java.io.Serializable {
|
||||
if (Singletons.getModel().getPreferences().getPrefBoolean(FPref.UI_MANABURN)) {
|
||||
p.loseLife(burn, null);
|
||||
}
|
||||
p.updateObservers();
|
||||
}
|
||||
|
||||
switch (this.phase) {
|
||||
@@ -746,21 +742,6 @@ public class PhaseHandler extends MyObservable implements java.io.Serializable {
|
||||
return this.isPlayerPriorityAllowed;
|
||||
}
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* isNeedToNextPhaseInit.
|
||||
* </p>
|
||||
*
|
||||
* @return a boolean.
|
||||
*/
|
||||
public final boolean isNeedToNextPhaseInit() {
|
||||
this.needToNextPhaseInit++;
|
||||
if (this.needToNextPhaseInit <= 4) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// this is a hack for the setup game state mode, do not use outside of
|
||||
// devSetupGameState code
|
||||
// as it avoids calling any of the phase effects that may be necessary in a
|
||||
|
||||
Reference in New Issue
Block a user