rename from battlefield to graveyard event comparing to .isDiesEvent

This commit is contained in:
Ingmar Goudt 2019-02-20 10:20:07 +01:00
parent 056226d83c
commit c45fe5c701
37 changed files with 37 additions and 44 deletions

View file

@ -66,7 +66,7 @@ public class DiesThisOrAnotherCreatureTriggeredAbility extends TriggeredAbilityI
return false;
}
if (zEvent.getFromZone() == Zone.BATTLEFIELD && zEvent.getToZone() == Zone.GRAVEYARD) {
if (zEvent.isDiesEvent()) {
if (zEvent.getTarget() != null) {
if (zEvent.getTarget().getId().equals(this.getSourceId())) {
return true;