mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 03:08:02 +00:00
Don't update view of LKI instead of real Card (#7070)
Co-authored-by: tool4EvEr <tool4EvEr@192.168.0.60>
This commit is contained in:
@@ -66,7 +66,6 @@ public class ReplacementHandler {
|
|||||||
|
|
||||||
public List<ReplacementEffect> getReplacementList(final ReplacementType event, final Map<AbilityKey, Object> runParams, final ReplacementLayer layer) {
|
public List<ReplacementEffect> getReplacementList(final ReplacementType event, final Map<AbilityKey, Object> runParams, final ReplacementLayer layer) {
|
||||||
final CardCollection preList = new CardCollection();
|
final CardCollection preList = new CardCollection();
|
||||||
boolean checkAgain = false;
|
|
||||||
Card affectedLKI = null;
|
Card affectedLKI = null;
|
||||||
Card affectedCard = null;
|
Card affectedCard = null;
|
||||||
|
|
||||||
@@ -92,8 +91,7 @@ public class ReplacementHandler {
|
|||||||
Map<Optional<Player>, Map<CounterType, Integer>> etbCounters = (Map<Optional<Player>, Map<CounterType, Integer>>) runParams.get(AbilityKey.CounterMap);
|
Map<Optional<Player>, Map<CounterType, Integer>> etbCounters = (Map<Optional<Player>, Map<CounterType, Integer>>) runParams.get(AbilityKey.CounterMap);
|
||||||
affectedLKI.putEtbCounters(etbCounters);
|
affectedLKI.putEtbCounters(etbCounters);
|
||||||
preList.add(affectedLKI);
|
preList.add(affectedLKI);
|
||||||
game.getAction().checkStaticAbilities(false, Sets.newHashSet(affectedLKI), preList);
|
game.getAction().checkStaticAbilities(false, Sets.newHashSet(), preList);
|
||||||
checkAgain = true;
|
|
||||||
|
|
||||||
runParams.put(AbilityKey.Affected, affectedLKI);
|
runParams.put(AbilityKey.Affected, affectedLKI);
|
||||||
}
|
}
|
||||||
@@ -137,8 +135,7 @@ public class ReplacementHandler {
|
|||||||
|
|
||||||
}, affectedCard != null && affectedCard.isInZone(ZoneType.Sideboard));
|
}, affectedCard != null && affectedCard.isInZone(ZoneType.Sideboard));
|
||||||
|
|
||||||
if (checkAgain) {
|
if (affectedLKI != null) {
|
||||||
if (affectedLKI != null && affectedCard != null) {
|
|
||||||
// need to set the Host Card there so it is not connected to LKI anymore?
|
// need to set the Host Card there so it is not connected to LKI anymore?
|
||||||
// need to be done after canReplace check
|
// need to be done after canReplace check
|
||||||
for (final ReplacementEffect re : affectedLKI.getReplacementEffects()) {
|
for (final ReplacementEffect re : affectedLKI.getReplacementEffects()) {
|
||||||
@@ -153,7 +150,7 @@ public class ReplacementHandler {
|
|||||||
}
|
}
|
||||||
runParams.put(AbilityKey.Affected, affectedCard);
|
runParams.put(AbilityKey.Affected, affectedCard);
|
||||||
runParams.put(AbilityKey.NewCard, CardCopyService.getLKICopy(affectedLKI));
|
runParams.put(AbilityKey.NewCard, CardCopyService.getLKICopy(affectedLKI));
|
||||||
}
|
|
||||||
game.getAction().checkStaticAbilities(false);
|
game.getAction().checkStaticAbilities(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user