mirror of
https://github.com/correl/mage.git
synced 2024-11-14 19:19:32 +00:00
Merge remote-tracking branch 'fork/master'
This commit is contained in:
commit
d3214c65e4
7 changed files with 13 additions and 13 deletions
|
@ -391,7 +391,7 @@ public class ConnectDialog extends MageDialog {
|
|||
connection.setUsername(this.txtUserName.getText().trim());
|
||||
connection.setPassword(this.txtPassword.getText().trim());
|
||||
connection.setForceDBComparison(this.chkForceUpdateDB.isSelected());
|
||||
connection.setUserIdStr(System.getProperty("user.name") + ":" + MagePreferences.getUserNames());
|
||||
connection.setUserIdStr(System.getProperty("user.name") + ':' + MagePreferences.getUserNames());
|
||||
MageFrame.getPreferences().put(KEY_CONNECT_FLAG, ((CountryItemEditor) cbFlag.getEditor()).getImageItem());
|
||||
PreferencesDialog.setProxyInformation(connection);
|
||||
|
||||
|
|
|
@ -24,7 +24,7 @@ public class DelayedViewerThread extends Thread {
|
|||
|
||||
public synchronized void show(Component component, long delay) {
|
||||
delayedViewers.put(component, System.currentTimeMillis() + delay);
|
||||
notify();
|
||||
notifyAll();
|
||||
}
|
||||
|
||||
public synchronized void hide(Component component) {
|
||||
|
|
|
@ -48,7 +48,7 @@ public class StartMultiGamesTest {
|
|||
synchronized (sync) {
|
||||
frame = new MageFrame();
|
||||
frame.setVisible(true);
|
||||
sync.notify();
|
||||
sync.notifyAll();
|
||||
}
|
||||
});
|
||||
synchronized (sync) {
|
||||
|
|
|
@ -1407,7 +1407,7 @@ public class HumanPlayer extends PlayerImpl {
|
|||
public void setResponseString(String responseString) {
|
||||
synchronized (response) {
|
||||
response.setString(responseString);
|
||||
response.notify();
|
||||
response.notifyAll();
|
||||
logger.debug("Got response string from player: " + getId());
|
||||
}
|
||||
}
|
||||
|
@ -1417,7 +1417,7 @@ public class HumanPlayer extends PlayerImpl {
|
|||
synchronized (response) {
|
||||
response.setManaType(manaType);
|
||||
response.setResponseManaTypePlayerId(manaTypePlayerId);
|
||||
response.notify();
|
||||
response.notifyAll();
|
||||
logger.debug("Got response mana type from player: " + getId());
|
||||
}
|
||||
}
|
||||
|
@ -1426,7 +1426,7 @@ public class HumanPlayer extends PlayerImpl {
|
|||
public void setResponseUUID(UUID responseUUID) {
|
||||
synchronized (response) {
|
||||
response.setUUID(responseUUID);
|
||||
response.notify();
|
||||
response.notifyAll();
|
||||
logger.debug("Got response UUID from player: " + getId());
|
||||
}
|
||||
}
|
||||
|
@ -1435,7 +1435,7 @@ public class HumanPlayer extends PlayerImpl {
|
|||
public void setResponseBoolean(Boolean responseBoolean) {
|
||||
synchronized (response) {
|
||||
response.setBoolean(responseBoolean);
|
||||
response.notify();
|
||||
response.notifyAll();
|
||||
logger.debug("Got response boolean from player: " + getId());
|
||||
}
|
||||
}
|
||||
|
@ -1444,7 +1444,7 @@ public class HumanPlayer extends PlayerImpl {
|
|||
public void setResponseInteger(Integer responseInteger) {
|
||||
synchronized (response) {
|
||||
response.setInteger(responseInteger);
|
||||
response.notify();
|
||||
response.notifyAll();
|
||||
logger.debug("Got response integer from player: " + getId());
|
||||
}
|
||||
}
|
||||
|
@ -1453,7 +1453,7 @@ public class HumanPlayer extends PlayerImpl {
|
|||
public void abort() {
|
||||
abort = true;
|
||||
synchronized (response) {
|
||||
response.notify();
|
||||
response.notifyAll();
|
||||
logger.debug("Got cancel action from player: " + getId());
|
||||
}
|
||||
}
|
||||
|
@ -1462,7 +1462,7 @@ public class HumanPlayer extends PlayerImpl {
|
|||
public void skip() {
|
||||
synchronized (response) {
|
||||
response.setInteger(0);
|
||||
response.notify();
|
||||
response.notifyAll();
|
||||
logger.debug("Got skip action from player: " + getId());
|
||||
}
|
||||
}
|
||||
|
|
|
@ -38,7 +38,7 @@ public class DivergentTransformationsTest extends CardTestPlayerBase {
|
|||
addCard(Zone.LIBRARY, playerA, hGiant);
|
||||
addCard(Zone.LIBRARY, playerB, mFlunkies);
|
||||
|
||||
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, dTransformations, memnite + "^" + gBears);
|
||||
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, dTransformations, memnite + '^' + gBears);
|
||||
|
||||
setStopAt(1, PhaseStep.BEGIN_COMBAT);
|
||||
execute();
|
||||
|
|
|
@ -518,7 +518,7 @@ public abstract class AbilityImpl implements Ability {
|
|||
PhyrexianManaCost phyrexianManaCost = (PhyrexianManaCost)cost;
|
||||
PayLifeCost payLifeCost = new PayLifeCost(2);
|
||||
if(payLifeCost.canPay(this, sourceId, controller.getId(), game) &&
|
||||
controller.chooseUse(Outcome.LoseLife, "Pay 2 life instead of " + phyrexianManaCost.getBaseText() + "?", this, game)) {
|
||||
controller.chooseUse(Outcome.LoseLife, "Pay 2 life instead of " + phyrexianManaCost.getBaseText() + '?', this, game)) {
|
||||
costIterator.remove();
|
||||
costs.add(payLifeCost);
|
||||
}
|
||||
|
|
|
@ -171,7 +171,7 @@ public abstract class PayCostToAttackBlockEffectImpl extends ReplacementEffectIm
|
|||
PhyrexianManaCost phyrexianManaCost = (PhyrexianManaCost)manaCost;
|
||||
PayLifeCost payLifeCost = new PayLifeCost(2);
|
||||
if(payLifeCost.canPay(source, source.getSourceId(), player.getId(), game) &&
|
||||
player.chooseUse(Outcome.LoseLife, "Pay 2 life instead of " + phyrexianManaCost.getBaseText() + "?", source, game)) {
|
||||
player.chooseUse(Outcome.LoseLife, "Pay 2 life instead of " + phyrexianManaCost.getBaseText() + '?', source, game)) {
|
||||
manaCostIterator.remove();
|
||||
costs.add(payLifeCost);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue