mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 11:18:01 +00:00
- AF Attach will now properly unenchant when moving auras.
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user