It is currently 16 Apr 2024, 19:56
   
Text Size

[fixed]Barter in Blood crash if a player has <2

Moderators: BAgate, drool66, Aswan jaguar, gmzombie, stassy, CCGHQ Admins

[fixed]Barter in Blood crash if a player has <2

Postby Aswan jaguar » 21 Nov 2017, 18:42

Describe the Bug:
Barter in Blood will crash the game when cast if a player controls less than 2 creatures.

Which card did behave improperly?
Barter in Blood

Which update are you using? (date, name)Which type? (duel, gauntlet, sealed deck)
Manalink dev 778ccb5 version - duel

What exactly should be the correct behavior/interaction?
Barter in Blood doesn't crash if a player has less than 2 creatures
5/1/2012 If a player controls only one creature, that creature is sacrificed.
5/1/2012 Barter in Blood doesn’t target any creatures and may be cast even if a player controls fewer than two creatures.
Are any other cards possibly affected by this bug?
-
Attachments
barter inblood crash;.rar
(2.24 KiB) Downloaded 235 times
Last edited by drool66 on 25 Apr 2020, 20:53, edited 2 times in total.
Reason: fixed
---
Trying to squash some bugs and playtesting.
User avatar
Aswan jaguar
Super Tester Elite
 
Posts: 8078
Joined: 13 May 2010, 12:17
Has thanked: 730 times
Been thanked: 458 times

Re: Barter in Blood crash if a player has <2

Postby Aswan jaguar » 17 Apr 2019, 16:51

This bug is the same for all cards that sacrifice more than 1 object for each player - it goes on a loop if objects to sacrifice less than wanted. At least these are: Destructive Force, Devastating Dreams, Ember Swallower, Tectonic Break, Thoughts of Ruin, Wildfire.
Probably Rite of Ruin which has also other bugs, see: viewtopic.php?f=86&t=14620&p=209790&hilit=rite+of+ruin#p209790.
Edit: They all use the apnap code that seems to have a problem with this.
Last edited by Aswan jaguar on 05 Sep 2019, 11:38, edited 1 time in total.
Reason: edit
---
Trying to squash some bugs and playtesting.
User avatar
Aswan jaguar
Super Tester Elite
 
Posts: 8078
Joined: 13 May 2010, 12:17
Has thanked: 730 times
Been thanked: 458 times

Re: Barter in Blood crash if a player has <2

Postby gnomefry » 24 Feb 2020, 18:27

Was this <2 crash bug fixed?

I ask because I'm seeing <2 creature bug for Barter in Blood, but not a crash. When a player has only 1 creature to choose it won't be sacrificed. Meanwhile an opponent with 2 or more creatures will still lose 2 creatures of their choice.
User avatar
gnomefry
Tester
 
Posts: 288
Joined: 28 Dec 2018, 00:44
Has thanked: 25 times
Been thanked: 24 times

Re: [part confirm]Barter in Blood crash if a player has <2

Postby Aswan jaguar » 24 Feb 2020, 19:02

Either the crash happens in specific scenarios or I have forgot some code when trying to fix this so it doesn't crash, anyway the most important thing is that it bugs for that scenario.
---
Trying to squash some bugs and playtesting.
User avatar
Aswan jaguar
Super Tester Elite
 
Posts: 8078
Joined: 13 May 2010, 12:17
Has thanked: 730 times
Been thanked: 458 times

Re: [fixed]Barter in Blood crash if a player has <2

Postby drool66 » 25 Apr 2020, 20:51

I'm about 99% sure fixed in fbefacbef ("Fix AI loops re: multi sacrifice", 2020-04-25)

I now get no crash in this savegame, or this one.
Was also getting an infinite loop when casting Barter in Blood when either player had exactly one creature on board, or fewer than X when casting Death Cloud - all fixed by this commit; the creature is now sacrificed as well. Also tested with Destructive Force, Devastating Dreams, Ember Swallower, Tectonic Break, Thoughts of Ruin & Wildfire, though several of these seem to have their own unrelated bugs. Destructive Force, for example, doesn't use the same function, and actually seems to use its own sacrifice function. I don't think there are other scenarios that would cause this crash, and they are not documented here, so I will mark as fixed, but feel free to overrule me.
User avatar
drool66
Programmer
 
Posts: 1163
Joined: 25 Nov 2010, 22:38
Has thanked: 186 times
Been thanked: 267 times


Return to Archived Reports

Who is online

Users browsing this forum: No registered users and 33 guests


Who is online

In total there are 33 users online :: 0 registered, 0 hidden and 33 guests (based on users active over the past 10 minutes)
Most users ever online was 4143 on 23 Jan 2024, 08:21

Users browsing this forum: No registered users and 33 guests

Login Form