Removed Overmaster debug text.

This commit is contained in:
emerald000 2014-10-26 07:44:31 -04:00
parent 7f4d494944
commit 20b3cc04c2

View file

@ -97,7 +97,6 @@ class OvermasterEffect extends ContinuousRuleModifiyingEffectImpl {
super.init(source, game); super.init(source, game);
OvermasterWatcher watcher = (OvermasterWatcher) game.getState().getWatchers().get("overmasterWatcher", source.getControllerId()); OvermasterWatcher watcher = (OvermasterWatcher) game.getState().getWatchers().get("overmasterWatcher", source.getControllerId());
if (watcher != null) { if (watcher != null) {
game.informPlayers("F");
watcher.setReady(); watcher.setReady();
} }
} }
@ -119,11 +118,9 @@ class OvermasterEffect extends ContinuousRuleModifiyingEffectImpl {
@Override @Override
public boolean applies(GameEvent event, Ability source, Game game) { public boolean applies(GameEvent event, Ability source, Game game) {
if (event.getType() == GameEvent.EventType.COUNTER) { if (event.getType() == GameEvent.EventType.COUNTER) {
game.informPlayers("D");
Spell spell = game.getStack().getSpell(event.getTargetId()); Spell spell = game.getStack().getSpell(event.getTargetId());
OvermasterWatcher watcher = (OvermasterWatcher) game.getState().getWatchers().get("overmasterWatcher", source.getControllerId()); OvermasterWatcher watcher = (OvermasterWatcher) game.getState().getWatchers().get("overmasterWatcher", source.getControllerId());
if (spell != null && watcher != null && watcher.isUncounterable(spell.getId())) { if (spell != null && watcher != null && watcher.isUncounterable(spell.getId())) {
game.informPlayers("E");
return true; return true;
} }
} }
@ -153,12 +150,9 @@ class OvermasterWatcher extends Watcher {
@Override @Override
public void watch(GameEvent event, Game game) { public void watch(GameEvent event, Game game) {
if (event.getType() == GameEvent.EventType.SPELL_CAST && ready) { if (event.getType() == GameEvent.EventType.SPELL_CAST && ready) {
game.informPlayers("A");
if (uncounterableSpell == null && event.getPlayerId().equals(this.getControllerId())) { if (uncounterableSpell == null && event.getPlayerId().equals(this.getControllerId())) {
game.informPlayers("B");
Spell spell = game.getStack().getSpell(event.getTargetId()); Spell spell = game.getStack().getSpell(event.getTargetId());
if (spell != null && (spell.getCardType().contains(CardType.SORCERY) || spell.getCardType().contains(CardType.INSTANT))) { if (spell != null && (spell.getCardType().contains(CardType.SORCERY) || spell.getCardType().contains(CardType.INSTANT))) {
game.informPlayers("C");
uncounterableSpell = spell.getId(); uncounterableSpell = spell.getId();
ready = false; ready = false;
} }