refactor: fixed dies events support in single cards (part 4);

This commit is contained in:
Oleg Agafonov 2024-11-09 19:10:00 +04:00
parent dc9f349828
commit 0689c56597
19 changed files with 159 additions and 37 deletions

View file

@ -1256,6 +1256,9 @@ public abstract class AbilityImpl implements Ability {
return allEvents.stream().anyMatch(e -> {
// TODO: add more events with zone change logic (or make it event's param)?
// need research: is it ability's or event's task?
// - ability's task: code like ability.setLookBackInTime
// - event's task: code like current switch
switch (e.getType()) {
case DESTROYED_PERMANENT:
case EXPLOITED_CREATURE: