mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 03:38: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
|
// If this Card is already Enchanting something
|
||||||
// Need to unenchant it, then clear out the commands
|
// Need to unenchant it, then clear out the commands
|
||||||
final GameEntity oldEnchanted = card.getEnchanting();
|
final GameEntity oldEnchanted = card.getEnchanting();
|
||||||
|
oldEnchanted.removeEnchantedBy(card);
|
||||||
card.removeEnchanting(oldEnchanted);
|
card.removeEnchanting(oldEnchanted);
|
||||||
card.clearEnchantCommand();
|
card.clearEnchantCommand();
|
||||||
card.clearUnEnchantCommand();
|
card.clearUnEnchantCommand();
|
||||||
|
|||||||
@@ -995,6 +995,7 @@ public final class AbilityFactoryChangeZone {
|
|||||||
// Need to unenchant it, then clear out the
|
// Need to unenchant it, then clear out the
|
||||||
// commands
|
// commands
|
||||||
final GameEntity oldEnchanted = c.getEnchanting();
|
final GameEntity oldEnchanted = c.getEnchanting();
|
||||||
|
oldEnchanted.removeEnchantedBy(c);
|
||||||
c.removeEnchanting(oldEnchanted);
|
c.removeEnchanting(oldEnchanted);
|
||||||
c.clearEnchantCommand();
|
c.clearEnchantCommand();
|
||||||
c.clearUnEnchantCommand();
|
c.clearUnEnchantCommand();
|
||||||
|
|||||||
Reference in New Issue
Block a user