It is currently 18 Jul 2025, 19:42
   
Text Size

Bug reports

Moderators: ubeefx, beholder, melvin, ShawnieBoy, Lodici, CCGHQ Admins

Re: Bug reports

Postby 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.
User avatar
melvin
AI Programmer
 
Posts: 1062
Joined: 21 Mar 2010, 12:26
Location: Singapore
Has thanked: 36 times
Been thanked: 459 times

Re: Bug reports

Postby 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 {1} 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 {2}
- ability resolves
what I expected was:
- I chose to play the ability
- I'm prompted to pay {2}
- 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

Postby melvin » 05 Mar 2014, 11:47

jerichopumpkin wrote:Sacrifice part of an ability cost is paid before mana.
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).

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.
User avatar
melvin
AI Programmer
 
Posts: 1062
Joined: 21 Mar 2010, 12:26
Location: Singapore
Has thanked: 36 times
Been thanked: 459 times

Re: Bug reports

Postby jerichopumpkin » 05 Mar 2014, 18:36

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.
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?

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

Postby 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 {1}.

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 {1} 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.
User avatar
melvin
AI Programmer
 
Posts: 1062
Joined: 21 Mar 2010, 12:26
Location: Singapore
Has thanked: 36 times
Been thanked: 459 times

Re: Bug reports

Postby 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.
User avatar
ShawnieBoy
Programmer
 
Posts: 601
Joined: 02 Apr 2012, 22:42
Location: UK
Has thanked: 80 times
Been thanked: 50 times

Re: Bug reports

Postby melvin » 08 Mar 2014, 01:28

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.
Yes, it is only used in ArtificialScoringSystem.getCardDefinitionScore (line 77) to compute the card score.
User avatar
melvin
AI Programmer
 
Posts: 1062
Joined: 21 Mar 2010, 12:26
Location: Singapore
Has thanked: 36 times
Been thanked: 459 times

Re: Bug reports

Postby ShawnieBoy » 08 Mar 2014, 03:51

So should we be adding a removal value to all scripted cards that deal damage then?
User avatar
ShawnieBoy
Programmer
 
Posts: 601
Joined: 02 Apr 2012, 22:42
Location: UK
Has thanked: 80 times
Been thanked: 50 times

Re: Bug reports

Postby muaddib » 11 Mar 2014, 09:57

Hunter of Eyeblights can destroy creature with shroud - Algae Gharial.
Attachments
scr5.png
User avatar
muaddib
Tester
 
Posts: 118
Joined: 03 Mar 2011, 08:37
Location: Russia
Has thanked: 0 time
Been thanked: 5 times

Re: Bug reports

Postby melvin » 12 Mar 2014, 02:15

muaddib wrote:Hunter of Eyeblights can destroy creature with shroud - Algae Gharial.
Thanks for catching this, fixed in https://code.google.com/p/magarena/sour ... 9a954443c3 for next release.
User avatar
melvin
AI Programmer
 
Posts: 1062
Joined: 21 Mar 2010, 12:26
Location: Singapore
Has thanked: 36 times
Been thanked: 459 times

Re: Bug reports

Postby melvin » 12 Mar 2014, 02:16

ShawnieBoy wrote:So should we be adding a removal value to all scripted cards that deal damage then?
Not important, but good to add it for consistency.
User avatar
melvin
AI Programmer
 
Posts: 1062
Joined: 21 Mar 2010, 12:26
Location: Singapore
Has thanked: 36 times
Been thanked: 459 times

Re: Bug reports

Postby 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?
Attachments
game.log
(45.75 KiB) Downloaded 199 times
scr3.png
scr4.png
scr5.png
scr6.png
User avatar
muaddib
Tester
 
Posts: 118
Joined: 03 Mar 2011, 08:37
Location: Russia
Has thanked: 0 time
Been thanked: 5 times

Re: Bug reports

Postby 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
User avatar
melvin
AI Programmer
 
Posts: 1062
Joined: 21 Mar 2010, 12:26
Location: Singapore
Has thanked: 36 times
Been thanked: 459 times

Re: Bug reports

Postby 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?
noxxle
 
Posts: 13
Joined: 24 Jun 2008, 15:46
Has thanked: 0 time
Been thanked: 0 time

Re: Bug reports

Postby tonetisd » 15 Mar 2014, 19:44

When Jaddi Lifestrider comes into play doesn't allow you to tap creatures to win life.

Thanks.
User avatar
tonetisd
 
Posts: 20
Joined: 21 Feb 2014, 04:52
Has thanked: 11 times
Been thanked: 1 time

PreviousNext

Return to Magarena

Who is online

Users browsing this forum: No registered users and 3 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 3 users online :: 0 registered, 0 hidden and 3 guests (based on users active over the past 10 minutes)
Most users ever online was 7303 on 15 Jul 2025, 20:46

Users browsing this forum: No registered users and 3 guests

Login Form