Page 60 of 86

Re: SVN Bug Reports

PostPosted: 16 May 2011, 15:42
by SoulStorm
Thanks for the info, I'll give that a try.

Re: SVN Bug Reports

PostPosted: 16 May 2011, 19:36
by Corwin72
r8697
Creeping Tar Pit is colorless after being activated. It should be Blue and Black.

Re: SVN Bug Reports

PostPosted: 16 May 2011, 19:58
by Sloth
lazylockie wrote:Clearwater Goblet is triggering on both upkeeps, when it should trigger only on your own.
Fixed. Thanks lazylockie.

Corwin72 wrote:Creeping Tar Pit is colorless after being activated. It should be Blue and Black.
Fixed. Thanks Corwin.

Re: SVN Bug Reports

PostPosted: 17 May 2011, 15:45
by jeffwadsworth
Doomgape. The AI does not sacrifice a creature at the beginning of its upkeep. Probably related to the GainLife AF.

Re: SVN Bug Reports

PostPosted: 17 May 2011, 17:54
by Chris H.
jeffwadsworth wrote:Doomgape. The AI does not sacrifice a creature at the beginning of its upkeep. Probably related to the GainLife AF.
`
I found this in the card file:

Code: Select all
SVar:TrigGainLife:AB$GainLife | Cost$ Sac<1/Creature> | Defined$ You | LifeAmount$ X
`
So the sac is handled as an alt type cost. I know that the AI can handle at least the tap and mana type costs. Can it handle the sac and other type costs?

We may need to get in there and add some more SVar:RemAIDeck:True

Re: SVN Bug Reports

PostPosted: 17 May 2011, 18:59
by jeffwadsworth
Chris H. wrote:
jeffwadsworth wrote:Doomgape. The AI does not sacrifice a creature at the beginning of its upkeep. Probably related to the GainLife AF.
`
I found this in the card file:

Code: Select all
SVar:TrigGainLife:AB$GainLife | Cost$ Sac<1/Creature> | Defined$ You | LifeAmount$ X
`
So the sac is handled as an alt type cost. I know that the AI can handle at least the tap and mana type costs. Can it handle the sac and other type costs?

We may need to get in there and add some more SVar:RemAIDeck:True
Well, I didn't script the card so I didn't touch it. I think I noticed some GainLife AI code added a while back that might have given the AI an option here...and it simply chooses to not commit the sacrifice.

If the SVar:X:Sacrificed:CardToughness worked for the AB$Sacrifice | Cost$ 0 | SacValid$ Creature | Defined$ You...

Re: SVN Bug Reports

PostPosted: 17 May 2011, 19:24
by Corwin72
r8776
The AI having Myr Turbine with 5 Myr out causes priority not to pass.

Re: SVN Bug Reports

PostPosted: 17 May 2011, 19:38
by Sloth
Chris H. wrote:
jeffwadsworth wrote:Doomgape. The AI does not sacrifice a creature at the beginning of its upkeep. Probably related to the GainLife AF.
`
I found this in the card file:

Code: Select all
SVar:TrigGainLife:AB$GainLife | Cost$ Sac<1/Creature> | Defined$ You | LifeAmount$ X
`
So the sac is handled as an alt type cost. I know that the AI can handle at least the tap and mana type costs. Can it handle the sac and other type costs?

We may need to get in there and add some more SVar:RemAIDeck:True
The card is just scripted wrong, even the human player can just cancel the ability. The sacrificing is not a cost.

Re: SVN Bug Reports

PostPosted: 18 May 2011, 02:52
by SoulStorm
Sloth, I just had the opportunity to test Psionic Sliver and it still doesn't work. The Psionic Sliver deals and receives damage correctly, but other slivers deal damage without receiving any.

Re: SVN Bug Reports

PostPosted: 18 May 2011, 07:45
by Sloth
SoulStorm wrote:Sloth, I just had the opportunity to test Psionic Sliver and it still doesn't work. The Psionic Sliver deals and receives damage correctly, but other slivers deal damage without receiving any.
Mmh, then additional code has to be written. I will try to do it.

Re: SVN Bug Reports

PostPosted: 18 May 2011, 14:26
by slapshot5
Sloth wrote:
SoulStorm wrote:Sloth, I just had the opportunity to test Psionic Sliver and it still doesn't work. The Psionic Sliver deals and receives damage correctly, but other slivers deal damage without receiving any.
Mmh, then additional code has to be written. I will try to do it.
I think there may just be a typo:
Code: Select all
K:stPumpAll:Sliver:0/0/SVar=DamageOther & SVar=DamageSelf:no Condition:All Sliver creatues have "tap: This creature deals 2 damage to target creature or player and 3 damage to itself."
SVar:DamageOther:AB$DealDamage | Cost$ T | Tgt$ CP | NumDmg$ 2 | SubAbility$ SVar=DBDamageSelf | SpellDescription$ This creature deals 2 damage to target creature or player and 3 damage to itself.
SVar:DBDamageSelf:DB$DealDamage | NumDmg$ 3 | Defined$ Self
The second SVar in the stPumpAll line should be "DBDamageSelf", correct?

-slapshot5

Re: SVN Bug Reports

PostPosted: 18 May 2011, 14:54
by Sloth
slapshot5 wrote:
Sloth wrote:
SoulStorm wrote:Sloth, I just had the opportunity to test Psionic Sliver and it still doesn't work. The Psionic Sliver deals and receives damage correctly, but other slivers deal damage without receiving any.
Mmh, then additional code has to be written. I will try to do it.
I think there may just be a typo:
Code: Select all
K:stPumpAll:Sliver:0/0/SVar=DamageOther & SVar=DamageSelf:no Condition:All Sliver creatues have "tap: This creature deals 2 damage to target creature or player and 3 damage to itself."
SVar:DamageOther:AB$DealDamage | Cost$ T | Tgt$ CP | NumDmg$ 2 | SubAbility$ SVar=DBDamageSelf | SpellDescription$ This creature deals 2 damage to target creature or player and 3 damage to itself.
SVar:DBDamageSelf:DB$DealDamage | NumDmg$ 3 | Defined$ Self
The second SVar in the stPumpAll line should be "DBDamageSelf", correct?

-slapshot5
Yes, that did it. Thanks slapshot.

Re: SVN Bug Reports

PostPosted: 18 May 2011, 15:48
by Corwin72
r8790
Pulling Teeth does not cause the AI to discard. If you win the clash or not.

Re: SVN Bug Reports

PostPosted: 18 May 2011, 19:06
by Corwin72
r8790
AI attackes with germ equipped with Batterskull and Sword of War and Peace. I have 0 cards in hand. AI has 3.
| Open
An error has occurred. You can copy/paste this message or save it to a file.
Please report this, plus what you tried to do, to:
viewforum.php?f=26
If you don't want to register an account, you can mail it directly to
mtgerror@yahoo.com


forge.HumanPlayer cannot be cast to forge.card.spellability.SpellAbility


Version:
Forge -- official beta: $Date: 2011-01-06 11:34:48 -0500 (Thu, 06 Jan 2011) $, SVN revision: $Revision: 4891 $

OS: Windows XP Version: 5.1 Architecture: x86

Java Version: 1.6.0_22 Vendor: Sun Microsystems Inc.

Detailed error trace:
java.lang.ClassCastException: forge.HumanPlayer cannot be cast to forge.card.spellability.SpellAbility
at forge.card.abilityFactory.AbilityFactory.getDefinedSpellAbilities(Unknown Source)
at forge.card.abilityFactory.AbilityFactory.getDefinedObjects(Unknown Source)
at forge.card.abilityFactory.AbilityFactory_DealDamage.damageStackDescription(Unknown Source)
at forge.card.abilityFactory.AbilityFactory_DealDamage.access$2(Unknown Source)
at forge.card.abilityFactory.AbilityFactory_DealDamage$1.getStackDescription(Unknown Source)
at forge.card.trigger.TriggerHandler.runSingleTrigger(Unknown Source)
at forge.card.trigger.TriggerHandler.runTrigger(Unknown Source)
at forge.Player.addDamageAfterPrevention(Unknown Source)
at forge.Player.addCombatDamage(Unknown Source)
at forge.Combat.dealAssignedDamage(Unknown Source)
at forge.Phase.handleBeginPhase(Unknown Source)
at forge.gui.input.InputControl.updateInput(Unknown Source)
at forge.GuiInput.update(Unknown Source)
at java.util.Observable.notifyObservers(Unknown Source)
at java.util.Observable.notifyObservers(Unknown Source)
at forge.MyObservable.updateObservers(Unknown Source)
at forge.Phase.nextPhase(Unknown Source)
at forge.Phase.nextPhase(Unknown Source)
at forge.GuiDisplay4$25.actionPerformed(Unknown Source)
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.plaf.basic.BasicButtonListener$Actions.actionPerformed(Unknown Source)
at javax.swing.SwingUtilities.notifyAction(Unknown Source)
at javax.swing.JComponent.processKeyBinding(Unknown Source)
at javax.swing.JComponent.processKeyBindings(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.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)

Re: SVN Bug Reports

PostPosted: 18 May 2011, 19:17
by Hellfish
Could you try r8797? I hope that fixed it.
EDIT:Or,you know, the latest, it hasn't changed since #-o