mirror of
https://github.com/correl/mage.git
synced 2024-12-24 11:50:45 +00:00
Remove debug prints
This commit is contained in:
parent
1b33f99cec
commit
95aa52d9ac
2 changed files with 1 additions and 10 deletions
|
@ -86,10 +86,8 @@ class HeartWolfDelayedTriggeredAbility extends DelayedTriggeredAbility {
|
|||
|
||||
@Override
|
||||
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;
|
||||
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
|
||||
return true;
|
||||
}
|
||||
|
@ -105,9 +103,4 @@ class HeartWolfDelayedTriggeredAbility extends DelayedTriggeredAbility {
|
|||
public String getRule() {
|
||||
return "When that creature leaves the battlefield this turn, sacrifice {this}.";
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "HeartWolfDelayedTriggeredAbility as a string!";
|
||||
}
|
||||
}
|
|
@ -31,9 +31,7 @@ public class SacrificeSourceEffect extends OneShotEffect {
|
|||
|
||||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
System.out.println("Source class: "+ source.getClass().getName());
|
||||
MageObject sourceObject = source.getSourceObjectIfItStillExists(game);
|
||||
System.out.println("Source object: "+sourceObject);
|
||||
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
|
||||
if (source.getSourceObject(game) instanceof Spell) {
|
||||
|
|
Loading…
Reference in a new issue