Remove debug prints

This commit is contained in:
Noah Gleason 2018-06-23 19:09:51 -04:00
parent 1b33f99cec
commit 95aa52d9ac
No known key found for this signature in database
GPG key ID: EC030EC6B0650A40
2 changed files with 1 additions and 10 deletions

View file

@ -86,10 +86,8 @@ class HeartWolfDelayedTriggeredAbility extends DelayedTriggeredAbility {
@Override @Override
public boolean checkTrigger(GameEvent event, Game game) { public boolean checkTrigger(GameEvent event, Game game) {
System.out.println("Source: "+game.getCard(sourceId).getLogName());
System.out.println("Source ID: "+sourceId);
ZoneChangeEvent zEvent = (ZoneChangeEvent) event; ZoneChangeEvent zEvent = (ZoneChangeEvent) event;
if(zEvent.getFromZone() == Zone.BATTLEFIELD && zEvent.getTarget() != null && zEvent.getTargetId().equals(getTargets().getFirstTarget())){ if (zEvent.getFromZone() == Zone.BATTLEFIELD && zEvent.getTarget() != null && zEvent.getTargetId().equals(getTargets().getFirstTarget())) {
this.getTargets().clear(); // else spell fizzles because target creature died this.getTargets().clear(); // else spell fizzles because target creature died
return true; return true;
} }
@ -105,9 +103,4 @@ class HeartWolfDelayedTriggeredAbility extends DelayedTriggeredAbility {
public String getRule() { public String getRule() {
return "When that creature leaves the battlefield this turn, sacrifice {this}."; return "When that creature leaves the battlefield this turn, sacrifice {this}.";
} }
@Override
public String toString() {
return "HeartWolfDelayedTriggeredAbility as a string!";
}
} }

View file

@ -31,9 +31,7 @@ public class SacrificeSourceEffect extends OneShotEffect {
@Override @Override
public boolean apply(Game game, Ability source) { public boolean apply(Game game, Ability source) {
System.out.println("Source class: "+ source.getClass().getName());
MageObject sourceObject = source.getSourceObjectIfItStillExists(game); MageObject sourceObject = source.getSourceObjectIfItStillExists(game);
System.out.println("Source object: "+sourceObject);
if (sourceObject == null) { if (sourceObject == null) {
// Check if the effect was installed by the spell the source was cast by (e.g. Necromancy), if not don't sacrifice the permanent // Check if the effect was installed by the spell the source was cast by (e.g. Necromancy), if not don't sacrifice the permanent
if (source.getSourceObject(game) instanceof Spell) { if (source.getSourceObject(game) instanceof Spell) {