- AF Attach will now properly unenchant when moving auras.

This commit is contained in:
Sloth
2012-09-04 19:40:46 +00:00
parent 52bb1f9b75
commit 1834e96cd6
2 changed files with 2 additions and 0 deletions

View File

@@ -1154,6 +1154,7 @@ public class AbilityFactoryAttach {
// If this Card is already Enchanting something
// Need to unenchant it, then clear out the commands
final GameEntity oldEnchanted = card.getEnchanting();
oldEnchanted.removeEnchantedBy(card);
card.removeEnchanting(oldEnchanted);
card.clearEnchantCommand();
card.clearUnEnchantCommand();

View File

@@ -995,6 +995,7 @@ public final class AbilityFactoryChangeZone {
// Need to unenchant it, then clear out the
// commands
final GameEntity oldEnchanted = c.getEnchanting();
oldEnchanted.removeEnchantedBy(c);
c.removeEnchanting(oldEnchanted);
c.clearEnchantCommand();
c.clearUnEnchantCommand();