forked from External/mage
refactor: fixed dies events support in single cards (part 3);
This commit is contained in:
parent
c3343110f3
commit
dc9f349828
14 changed files with 84 additions and 2 deletions
|
|
@ -1255,13 +1255,13 @@ public abstract class AbilityImpl implements Ability {
|
|||
}
|
||||
|
||||
return allEvents.stream().anyMatch(e -> {
|
||||
// TODO: add more events with zone change logic (or make it even't param)?
|
||||
// TODO: add more events with zone change logic (or make it event's param)?
|
||||
switch (e.getType()) {
|
||||
case DESTROYED_PERMANENT:
|
||||
case EXPLOITED_CREATURE:
|
||||
return true;
|
||||
case ZONE_CHANGE:
|
||||
return ((ZoneChangeEvent) event).getFromZone() == Zone.BATTLEFIELD;
|
||||
return ((ZoneChangeEvent) e).getFromZone() == Zone.BATTLEFIELD;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue