Cards can enchant players - fix game copier for simulated ai to account for this.

This commit is contained in:
Myrd
2015-03-08 05:53:07 +00:00
parent 061779ddac
commit 13f5a43aa6

View File

@@ -154,7 +154,7 @@ public class GameCopier {
otherCard.setTimestamp(card.getTimestamp()); otherCard.setTimestamp(card.getTimestamp());
otherCard.setSickness(card.hasSickness()); otherCard.setSickness(card.hasSickness());
if (card.isEnchanting()) { if (card.isEnchanting()) {
otherCard.setEnchanting(cardMap.get(card.getEnchanting())); otherCard.setEnchanting(gameObjectMap.map(card.getEnchanting()));
} }
if (card.isEquipping()) { if (card.isEquipping()) {
otherCard.equipCard(cardMap.get(card.getEquipping())); otherCard.equipCard(cardMap.get(card.getEquipping()));