Hmmm.. In Combat, See if changing
private Map<GameEntity, CardList> defenderMap = new TreeMap<GameEntity, CardList>();
to
private Map<GameEntity, CardList> defenderMap = new HashMap<GameEntity, CardList>(); helps at all
High Quality Resources for Collectible Card Games and Home of the CCGHQ Team
https://www.slightlymagic.net/forum/
https://www.slightlymagic.net/forum/viewtopic.php?f=52&t=6333
Hmmm.. In Combat, See if changing
Seems to have done the trick. Should I commit that change or is there anything else you want to check first?friarsol wrote:Hmmm.. In Combat, See if changing
private Map<GameEntity, CardList> defenderMap = new TreeMap<GameEntity, CardList>();
to
private Map<GameEntity, CardList> defenderMap = new HashMap<GameEntity, CardList>(); helps at all
I was just going to use a hashmap to begin with, but for whatever reason the rest of those were already TreeMaps, so I just followed that. But I guess since GameEntities aren't comparable it can't use a TreeMap from Card -> Player.moomarc wrote:Seems to have done the trick. Should I commit that change or is there anything else you want to check first?
Edit: Meh, just commited the fix. If it's stopped something else from working then it's four letters to revert.
I think this is fixed now. Just duplicated the block in GameAction.changeZone that removes these types of keywords from permanents entering play, then changed the destination zone to graveyard. Can anyone think of a situation this won't work? Basic testing works fine.moomarc wrote:Looks like pumped "May be played" keywords don't get removed from instants or sorceries when cast or countered. Affects Aerial Caravan, Elkin Bottle etc. Is there an easy way to clear the keyword when you cast it do we need to start converting them to Play AFs?
This is a Crash Report. An error has occurred. Please save this message to a file.
Please follow the instructions at this address to submit this Crash Report, plus what you were doing at the time:
http://tinyurl.com/3zzrnyb
Reporting bugs in Forge is very important. We thank you for your time.
For input string: "X"
Version:
Forge version 1.2.14-SNAPSHOT
OS: Windows 7 Version: 6.1 Architecture: x86
Java Version: 1.7.0_07 Vendor: Oracle Corporation
Detailed error trace:
java.lang.NumberFormatException: For input string: "X"
at java.lang.NumberFormatException.forInputString(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at forge.card.abilityfactory.AbilityFactory.calculateAmount(AbilityFactory.java:1784)
at forge.card.abilityfactory.AbilityFactoryMana.generatedMana(AbilityFactoryMana.java:428)
at forge.card.abilityfactory.AbilityFactoryMana.manaResolve(AbilityFactoryMana.java:388)
at forge.card.abilityfactory.AbilityFactoryMana$1abFactoryMana.resolve(AbilityFactoryMana.java:86)
at forge.card.abilityfactory.AbilityFactory.resolve(AbilityFactory.java:2842)
at forge.card.spellability.SpellAbilityRequirements.finishPaying(SpellAbilityRequirements.java:190)
at forge.card.cost.CostPayment.payCost(CostPayment.java:227)
at forge.card.cost.CostPayment.paidCost(CostPayment.java:190)
at forge.card.cost.CostMana.payHuman(CostMana.java:219)
at forge.card.cost.CostPayment.payCost(CostPayment.java:221)
at forge.card.spellability.SpellAbilityRequirements.startPaying(SpellAbilityRequirements.java:179)
at forge.card.spellability.SpellAbilityRequirements.needPayment(SpellAbilityRequirements.java:165)
at forge.card.spellability.SpellAbilityRequirements.fillRequirements(SpellAbilityRequirements.java:132)
at forge.GameAction.playSpellAbilityNoStack(GameAction.java:2051)
at forge.card.trigger.TriggerHandler$2.resolve(TriggerHandler.java:993)
at forge.card.abilityfactory.AbilityFactory.resolve(AbilityFactory.java:2842)
at forge.game.zone.MagicStack.resolveStack(MagicStack.java:940)
at forge.game.phase.PhaseHandler.passPriority(PhaseHandler.java:881)
at forge.game.player.ComputerAIGeneral.playSpellAbilities(ComputerAIGeneral.java:345)
at forge.control.input.InputControl.updateInput(InputControl.java:260)
at forge.gui.GuiInput.update(GuiInput.java:58)
at java.util.Observable.notifyObservers(Unknown Source)
at java.util.Observable.notifyObservers(Unknown Source)
at forge.util.MyObservable.updateObservers(MyObservable.java:41)
at forge.control.input.InputControl.resetInput(InputControl.java:146)
at forge.game.phase.PhaseHandler.passPriority(PhaseHandler.java:870)
at forge.control.input.InputPassPriority.selectButtonOK(InputPassPriority.java:76)
at forge.gui.GuiInput.selectButtonOK(GuiInput.java:92)
at forge.gui.match.controllers.CMessage$2.actionPerformed(CMessage.java:52)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.AbstractButton.doClick(Unknown Source)
at javax.swing.AbstractButton.doClick(Unknown Source)
at forge.gui.toolbox.FButton$1.keyPressed(FButton.java:89)
at java.awt.Component.processKeyEvent(Unknown Source)
at javax.swing.JComponent.processKeyEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.KeyboardFocusManager.redispatchEvent(Unknown Source)
at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(Unknown Source)
at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(Unknown Source)
at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(Unknown Source)
at java.awt.DefaultKeyboardFocusManager.dispatchEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$200(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Fixed. Thanks Milod!Milod wrote:error while cpu uses Trepanation Blade
- Code: Select all
For input string: "X"...
Fixed. Thanks Bundy!Bundy wrote:Got this error after choosing a color for the counter on Coalition Relic