Bug reports
by ubeefx
Moderators: ubeefx, beholder, melvin, ShawnieBoy, Lodici, CCGHQ Admins
Re: Bug reports
by melvin » 04 Mar 2014, 12:22
muaddib wrote:When Mournful Zombie activate his ability doesn't cause him to tap
Thanks for catching this, fixed in https://code.google.com/p/magarena/sour ... 96a503ea3a for next release.
-
melvin - AI Programmer
- Posts: 1062
- Joined: 21 Mar 2010, 12:26
- Location: Singapore
- Has thanked: 36 times
- Been thanked: 459 times
Re: Bug reports
by jerichopumpkin » 05 Mar 2014, 09:10
Sacrifice part of an ability cost is paid before mana. Let me be more clear:
I had in play a Manaweft Sliver, a Mnemonic Sliver and a bunch of other slivers.
I've chosen to sacrifice one of them to draw a card, but I was unable to pay
with the one I intended to sacrifice, as it was removed from the battlefield as soon as I choose to use it's ability.
So the sequence is:
- I chose to play the ability
- the sliver is sacrificed
- I'm prompted to pay
- ability resolves
what I expected was:
- I chose to play the ability
- I'm prompted to pay
- the sliver is sacrificed
- ability resolves
Only excpetion should be self-tap cost, which should be the first cost to be paid in any case
I had in play a Manaweft Sliver, a Mnemonic Sliver and a bunch of other slivers.
I've chosen to sacrifice one of them to draw a card, but I was unable to pay

So the sequence is:
- I chose to play the ability
- the sliver is sacrificed
- I'm prompted to pay

- ability resolves
what I expected was:
- I chose to play the ability
- I'm prompted to pay

- the sliver is sacrificed
- ability resolves
Only excpetion should be self-tap cost, which should be the first cost to be paid in any case
- jerichopumpkin
- Posts: 212
- Joined: 12 Sep 2013, 11:21
- Has thanked: 19 times
- Been thanked: 13 times
Re: Bug reports
by melvin » 05 Mar 2014, 11:47
Good catch, this is intentional and was suppose to solve the issue where self tap cannot be paid due permanent already tapped to pay for mana. I wasn't sure that only self tap is affected by this, so I thought the more generic solution is to make payment for cost without choices (eg self tap) happen before costs with choices (mana cost).jerichopumpkin wrote:Sacrifice part of an ability cost is paid before mana.
Btw, self tap is not the only exception. Consider an ability that says "sacrifice this to produce mana", if both mana and sacrifice this are part of a cost, then you can't use the mana ability as that would prevent you from satisfying the sacrifice part of the cost.
As you've shown, my generalization is not correct either and fails in your situation.
-
melvin - AI Programmer
- Posts: 1062
- Joined: 21 Mar 2010, 12:26
- Location: Singapore
- Has thanked: 36 times
- Been thanked: 459 times
Re: Bug reports
by jerichopumpkin » 05 Mar 2014, 18:36
I'm not sure I understood the example. The scenario is a permanent with an ability like "{1}, sacrifice this: add any one mana", right?melvin wrote:Btw, self tap is not the only exception. Consider an ability that says "sacrifice this to produce mana", if both mana and sacrifice this are part of a cost, then you can't use the mana ability as that would prevent you from satisfying the sacrifice part of the cost.
As you've shown, my generalization is not correct either and fails in your situation.
For the human player that should not be a problem (or at least one hopes so), but I see what a problem it could be for the AI, as it can lead to an infinite loop...
- jerichopumpkin
- Posts: 212
- Joined: 12 Sep 2013, 11:21
- Has thanked: 19 times
- Been thanked: 13 times
Re: Bug reports
by melvin » 06 Mar 2014, 01:40
Yup, that's the situation, and my concern is more for the AI.
Specifically consider a permanent with two abilities:
"Sacrifice this: produce one mana of any color"
"{1}, Sacrifice this: <some effect>"
The problem is when activating the second ability. You shouldn't be able to use the first ability to pay for
.
Consider another permanent with
"Tap this: produce one mana of any color"
"{1}, Sacrifice this: <some effect>"
In this case we can use the first ability to pay for the
in the second ability.
Hmm, seems to be an issue of preventing using a cost in the ability to do something else. So if we are paying for the second ability, we should not be able to use mana abilities who costs overlap with activated ability we are trying to pay for.
Specifically consider a permanent with two abilities:
"Sacrifice this: produce one mana of any color"
"{1}, Sacrifice this: <some effect>"
The problem is when activating the second ability. You shouldn't be able to use the first ability to pay for

Consider another permanent with
"Tap this: produce one mana of any color"
"{1}, Sacrifice this: <some effect>"
In this case we can use the first ability to pay for the

Hmm, seems to be an issue of preventing using a cost in the ability to do something else. So if we are paying for the second ability, we should not be able to use mana abilities who costs overlap with activated ability we are trying to pay for.
-
melvin - AI Programmer
- Posts: 1062
- Joined: 21 Mar 2010, 12:26
- Location: Singapore
- Has thanked: 36 times
- Been thanked: 459 times
Re: Bug reports
by ShawnieBoy » 06 Mar 2014, 18:45
I know this isn't really a bug but...
Is the 'removal' value in MagicCardDefinition still being used in card scripts? Just stumbled across it on Reckless Abandon and it's still there in MagicCardDefinition.
Is the 'removal' value in MagicCardDefinition still being used in card scripts? Just stumbled across it on Reckless Abandon and it's still there in MagicCardDefinition.
-
ShawnieBoy - Programmer
- Posts: 601
- Joined: 02 Apr 2012, 22:42
- Location: UK
- Has thanked: 80 times
- Been thanked: 50 times
Re: Bug reports
by melvin » 08 Mar 2014, 01:28
Yes, it is only used in ArtificialScoringSystem.getCardDefinitionScore (line 77) to compute the card score.ShawnieBoy wrote:I know this isn't really a bug but...
Is the 'removal' value in MagicCardDefinition still being used in card scripts? Just stumbled across it on Reckless Abandon and it's still there in MagicCardDefinition.
-
melvin - AI Programmer
- Posts: 1062
- Joined: 21 Mar 2010, 12:26
- Location: Singapore
- Has thanked: 36 times
- Been thanked: 459 times
Re: Bug reports
by ShawnieBoy » 08 Mar 2014, 03:51
So should we be adding a removal value to all scripted cards that deal damage then?
-
ShawnieBoy - Programmer
- Posts: 601
- Joined: 02 Apr 2012, 22:42
- Location: UK
- Has thanked: 80 times
- Been thanked: 50 times
Re: Bug reports
by muaddib » 11 Mar 2014, 09:57
Hunter of Eyeblights can destroy creature with shroud - Algae Gharial.
-
muaddib - Tester
- Posts: 118
- Joined: 03 Mar 2011, 08:37
- Location: Russia
- Has thanked: 0 time
- Been thanked: 5 times
Re: Bug reports
by melvin » 12 Mar 2014, 02:15
Thanks for catching this, fixed in https://code.google.com/p/magarena/sour ... 9a954443c3 for next release.muaddib wrote:Hunter of Eyeblights can destroy creature with shroud - Algae Gharial.
-
melvin - AI Programmer
- Posts: 1062
- Joined: 21 Mar 2010, 12:26
- Location: Singapore
- Has thanked: 36 times
- Been thanked: 459 times
Re: Bug reports
by melvin » 12 Mar 2014, 02:16
Not important, but good to add it for consistency.ShawnieBoy wrote:So should we be adding a removal value to all scripted cards that deal damage then?
-
melvin - AI Programmer
- Posts: 1062
- Joined: 21 Mar 2010, 12:26
- Location: Singapore
- Has thanked: 36 times
- Been thanked: 459 times
Re: Bug reports
by muaddib » 12 Mar 2014, 05:42
When Infernal Medusa attack I blocked her Isao, Enlightened Bushi then regenerate him (screenshot 1)
After my turn, Isao, Enlightened Bushi unexpectedly try to destroy, but I regenerate him (screenshot 2,3)
After computer turn Isao, Enlightened Bushi unexpectedly try to destroy again and destroyed because I have no mana (screenshot 4).
Is it bug of Infernal Medusa?
After my turn, Isao, Enlightened Bushi unexpectedly try to destroy, but I regenerate him (screenshot 2,3)
After computer turn Isao, Enlightened Bushi unexpectedly try to destroy again and destroyed because I have no mana (screenshot 4).
Is it bug of Infernal Medusa?
- Attachments
-
game.log
- (45.75 KiB) Downloaded 199 times
-
muaddib - Tester
- Posts: 118
- Joined: 03 Mar 2011, 08:37
- Location: Russia
- Has thanked: 0 time
- Been thanked: 5 times
Re: Bug reports
by melvin » 12 Mar 2014, 06:55
Problem was trigger was marked as permanent. Thanks for catching this, fixed in https://code.google.com/p/magarena/sour ... cda852f297
-
melvin - AI Programmer
- Posts: 1062
- Joined: 21 Mar 2010, 12:26
- Location: Singapore
- Has thanked: 36 times
- Been thanked: 459 times
Re: Bug reports
by noxxle » 15 Mar 2014, 19:26
After exiting Magarena (1.47), I am unable to move icons on my desktop until logging out. I've tested on two windows 8 tablets, Lenovo's Miix 8 and Thinkpad 8.
Any idea what could cause this?
Any idea what could cause this?
- noxxle
- Posts: 13
- Joined: 24 Jun 2008, 15:46
- Has thanked: 0 time
- Been thanked: 0 time
Who is online
Users browsing this forum: No registered users and 3 guests