mirror of
https://github.com/magefree/mage.git
synced 2026-01-26 21:29:17 -08:00
Triggered abilities - fixed that sacrice trigger doesn't work on itself (related to #13089, regression from #13088)
This commit is contained in:
parent
b855434a24
commit
ea0b0915a5
3 changed files with 53 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue