- Fixed cards moving to the library not creating CombatLKI's.

This commit is contained in:
Sloth
2013-07-02 15:29:00 +00:00
parent 1052537fc6
commit 4aed00d954

View File

@@ -640,10 +640,6 @@ public class GameAction {
return this.moveTo(removed, c); return this.moveTo(removed, c);
} }
if (p != null) {
p.remove(c);
}
if (c.isToken()) { if (c.isToken()) {
return c; return c;
} }
@@ -666,6 +662,14 @@ public class GameAction {
library.add(c, libPosition); library.add(c, libPosition);
} }
if (p != null) {
if (p.is(ZoneType.Battlefield) && c.isCreature() && game.getCombat() != null) {
game.getCombat().saveLKI(lastKnownInfo);
game.getCombat().removeFromCombat(c);
}
p.remove(c);
}
final HashMap<String, Object> runParams = new HashMap<String, Object>(); final HashMap<String, Object> runParams = new HashMap<String, Object>();
runParams.put("Card", lastKnownInfo); runParams.put("Card", lastKnownInfo);
if (p != null) { if (p != null) {