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

@ -395,6 +395,7 @@ public abstract class TriggeredAbilityImpl extends AbilityImpl implements Trigge
break;
case DESTROYED_PERMANENT:
case EXPLOITED_CREATURE:
case SACRIFICED_PERMANENT:
if (isLeavesTheBattlefieldTrigger() && game.checkShortLivingLKI(affectedSourceId, Zone.BATTLEFIELD)) {
affectedSourceObject = game.getPermanentOrLKIBattlefield(affectedSourceId);
}