mirror of
https://github.com/correl/mage.git
synced 2024-12-24 03:00:14 +00:00
Removed redundant remove user from chat call and some formatting.
This commit is contained in:
parent
2c85c54b9f
commit
b360bb1528
4 changed files with 4 additions and 9 deletions
|
@ -39,8 +39,8 @@ import mage.game.Game;
|
|||
*/
|
||||
public class RevealedView implements Serializable {
|
||||
|
||||
private String name;
|
||||
private SimpleCardsView cards = new SimpleCardsView();
|
||||
private final String name;
|
||||
private final SimpleCardsView cards = new SimpleCardsView();
|
||||
|
||||
public RevealedView(String name, Cards cards, Game game) {
|
||||
this.name = name;
|
||||
|
|
|
@ -45,12 +45,8 @@ import mage.abilities.PlayLandAbility;
|
|||
import mage.abilities.SpecialAction;
|
||||
import mage.abilities.SpellAbility;
|
||||
import mage.abilities.TriggeredAbility;
|
||||
import mage.abilities.costs.Cost;
|
||||
import mage.abilities.costs.VariableCost;
|
||||
import mage.abilities.costs.common.PayLifeCost;
|
||||
import mage.abilities.costs.common.RemoveCounterCost;
|
||||
import mage.abilities.costs.common.SacrificeSourceCost;
|
||||
import mage.abilities.costs.common.TapSourceCost;
|
||||
import mage.abilities.costs.mana.ManaCost;
|
||||
import mage.abilities.costs.mana.ManaCostsImpl;
|
||||
import mage.abilities.costs.mana.PhyrexianManaCost;
|
||||
|
@ -343,7 +339,7 @@ public class HumanPlayer extends PlayerImpl {
|
|||
Map<String, Serializable> options = getOptions(target);
|
||||
if (target.getTargets().size() > 0) {
|
||||
if (options == null) {
|
||||
options = new HashMap<String, Serializable>(1);
|
||||
options = new HashMap<>(1);
|
||||
}
|
||||
List<UUID> chosen = (List<UUID>)target.getTargets();
|
||||
options.put("chosen", (Serializable)chosen);
|
||||
|
|
|
@ -129,7 +129,6 @@ public class UserManager {
|
|||
.append(" userId: ").append(userId)
|
||||
.append(" sessionId: ").append(user.getSessionId())
|
||||
.append(" Reason: ").append(reason.toString()));
|
||||
ChatManager.getInstance().removeUser(userId, reason);
|
||||
user.kill(reason);
|
||||
users.remove(userId);
|
||||
} else {
|
||||
|
|
|
@ -67,7 +67,7 @@ public class GideonChampionOfJustice extends CardImpl {
|
|||
|
||||
// +1: Put a loyalty counter on Gideon, Champion of Justice for each creature target opponent controls.
|
||||
LoyaltyAbility ability1 = new LoyaltyAbility(
|
||||
new AddCountersSourceEffect(CounterType.LOYALTY.createInstance(0), new PermanentsTargetOpponentControlsCount(), false), 1);
|
||||
new AddCountersSourceEffect(CounterType.LOYALTY.createInstance(0), new PermanentsTargetOpponentControlsCount(), true), 1);
|
||||
ability1.addTarget(new TargetOpponent());
|
||||
this.addAbility(ability1);
|
||||
|
||||
|
|
Loading…
Reference in a new issue