* Fix NPE
This commit is contained in:
tool4ever
2023-02-22 17:45:26 +01:00
committed by GitHub
parent 1e7f658813
commit e9dfbf3c66
13 changed files with 21 additions and 21 deletions

View File

@@ -3164,7 +3164,7 @@ public class ComputerUtil {
final Map<AbilityKey, Object> repParams = AbilityKey.mapFromAffected(c);
// don't need to bother with real LKI since this is a passive check and the card isn't going anywhere
repParams.put(AbilityKey.CardLKI, c);
repParams.put(AbilityKey.Origin, c.getZone().getZoneType());
repParams.put(AbilityKey.Origin, c.getLastKnownZone().getZoneType());
repParams.put(AbilityKey.Destination, ZoneType.Battlefield);
List<ReplacementEffect> list = c.getGame().getReplacementHandler().getReplacementList(ReplacementType.Moved, repParams, ReplacementLayer.CantHappen);
return !list.isEmpty();