Triggered abilities - fixed that sacrice trigger doesn't work on itself (related to #13089, regression from #13088)

This commit is contained in:
Oleg Agafonov 2024-12-14 16:59:20 +04:00
parent b855434a24
commit ea0b0915a5
3 changed files with 53 additions and 3 deletions

View file

@ -1284,6 +1284,7 @@ public abstract class AbilityImpl implements Ability {
switch (e.getType()) {
case DESTROYED_PERMANENT:
case EXPLOITED_CREATURE:
case SACRIFICED_PERMANENT:
return true;
case ZONE_CHANGE:
return ((ZoneChangeEvent) e).getFromZone() == Zone.BATTLEFIELD;