mirror of
https://github.com/correl/mage.git
synced 2025-03-30 01:03:57 -09:00
Some minor logging and comment changes.
This commit is contained in:
parent
a42318070e
commit
797ee3d945
4 changed files with 11 additions and 4 deletions
Mage.Server.Plugins/Mage.Player.Human/src/mage/player/human
Mage.Server/src/main/java/mage/server
Mage.Sets/src/mage/sets/conflux
|
@ -415,7 +415,7 @@ public class HumanPlayer extends PlayerImpl {
|
|||
public boolean chooseTargetAmount(Outcome outcome, TargetAmount target, Ability source, Game game) {
|
||||
updateGameStatePriority("chooseTargetAmount", game);
|
||||
while (!abort) {
|
||||
game.fireSelectTargetEvent(playerId, target.getMessage() + "\n Amount remaining:" + target.getAmountRemaining(), target.possibleTargets(source==null?null:source.getId(), playerId, game), target.isRequired(source), null);
|
||||
game.fireSelectTargetEvent(playerId, target.getMessage() + "\n Amount remaining:" + target.getAmountRemaining(), target.possibleTargets(source==null?null:source.getSourceId(), playerId, game), target.isRequired(source), null);
|
||||
waitForResponse(game);
|
||||
if (response.getUUID() != null) {
|
||||
if (target.canTarget(response.getUUID(), source, game)) {
|
||||
|
|
|
@ -65,7 +65,7 @@ public class ChatManager {
|
|||
if (chatSessions.containsKey(chatId)) {
|
||||
chatSessions.get(chatId).join(userId);
|
||||
} else {
|
||||
logger.warn("User could not join chatId: " + chatId +" userId: " + userId);
|
||||
logger.trace("User could not join chatId: " + chatId +" userId: " + userId);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -81,7 +81,7 @@ public class ChatManager {
|
|||
chatSessions.remove(chatId);
|
||||
logger.debug("Chat removed - chatId: " + chatId);
|
||||
} else {
|
||||
logger.warn("Chat to destroy does not exist - chatId: " + chatId);
|
||||
logger.trace("Chat to destroy does not exist - chatId: " + chatId);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -139,7 +139,9 @@ public class MageServerImpl implements MageServer {
|
|||
if (logger.isDebugEnabled()) {
|
||||
User user = UserManager.getInstance().getUser(userId);
|
||||
if (user != null) {
|
||||
logger.debug(user.getName() + " created tableId: " + table.getTableId());
|
||||
logger.debug("TABLE created - tableId: " + table.getTableId());
|
||||
logger.debug("- " + user.getName() + " userId: " + user.getId());
|
||||
logger.debug("- chatId: " + TableManager.getInstance().getChatId(table.getTableId()));
|
||||
}
|
||||
}
|
||||
LogServiceImpl.instance.log(LogKeys.KEY_TABLE_CREATED, sessionId, userId.toString(), table.getTableId().toString());
|
||||
|
|
|
@ -56,9 +56,14 @@ public class HellsparkElemental extends CardImpl {
|
|||
this.power = new MageInt(3);
|
||||
this.toughness = new MageInt(1);
|
||||
|
||||
// Trample, haste
|
||||
this.addAbility(TrampleAbility.getInstance());
|
||||
this.addAbility(HasteAbility.getInstance());
|
||||
|
||||
// At the beginning of the end step, sacrifice Hellspark Elemental.
|
||||
this.addAbility(new OnEventTriggeredAbility(EventType.END_TURN_STEP_PRE, "beginning of the end step", true, new SacrificeSourceEffect()));
|
||||
|
||||
// Unearth {1}{R} ({1}{R}: Return this card from your graveyard to the battlefield. It gains haste. Exile it at the beginning of the next end step or if it would leave the battlefield. Unearth only as a sorcery.)
|
||||
this.addAbility(new UnearthAbility(new ManaCostsImpl("{1}{R}")));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue