It is currently 02 Sep 2025, 20:43
   
Text Size

[Fixed] Bug Archive

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

Re: [confirmed]Embrace My Diabolical Vision

Postby Gargaroz » 26 Jun 2013, 12:45

Fixed.
----
- Current / medium term task: adjusting the code for making Misdirection and such usable
- Long term task: inserting all the good stuff I left out from the "Golden Years" mod
Gargaroz
Programmer
 
Posts: 7097
Joined: 06 Nov 2009, 11:11
Has thanked: 82 times
Been thanked: 595 times

Re: Pyrewild Shaman

Postby Gargaroz » 26 Jun 2013, 12:49

Fixed.
----
- Current / medium term task: adjusting the code for making Misdirection and such usable
- Long term task: inserting all the good stuff I left out from the "Golden Years" mod
Gargaroz
Programmer
 
Posts: 7097
Joined: 06 Nov 2009, 11:11
Has thanked: 82 times
Been thanked: 595 times

Re: [confirmed]infect and first strike

Postby Gargaroz » 26 Jun 2013, 12:56

A question : that values are resetted at what step ? After the EVENT_DEAL_DAMAGE ?
Should I insert that code in "add/remove_1_1_counter/conters" or it should be done only if it's happening in the damage step ?
----
- Current / medium term task: adjusting the code for making Misdirection and such usable
- Long term task: inserting all the good stuff I left out from the "Golden Years" mod
Gargaroz
Programmer
 
Posts: 7097
Joined: 06 Nov 2009, 11:11
Has thanked: 82 times
Been thanked: 595 times

Re: Winged Coatl

Postby Gargaroz » 26 Jun 2013, 13:07

Bad values in "ct_all". Fixed.
----
- Current / medium term task: adjusting the code for making Misdirection and such usable
- Long term task: inserting all the good stuff I left out from the "Golden Years" mod
Gargaroz
Programmer
 
Posts: 7097
Joined: 06 Nov 2009, 11:11
Has thanked: 82 times
Been thanked: 595 times

Re: [confirmed]Inquisition of Kozilek

Postby Gargaroz » 26 Jun 2013, 13:09

Fixed.
----
- Current / medium term task: adjusting the code for making Misdirection and such usable
- Long term task: inserting all the good stuff I left out from the "Golden Years" mod
Gargaroz
Programmer
 
Posts: 7097
Joined: 06 Nov 2009, 11:11
Has thanked: 82 times
Been thanked: 595 times

Re: Abyssal Prosecutor

Postby Gargaroz » 26 Jun 2013, 13:11

Well, the "lose_the_game" function was recently improved thanx to Korath, and I've incorporated all the possible modifications, so this should be fixed now.
----
- Current / medium term task: adjusting the code for making Misdirection and such usable
- Long term task: inserting all the good stuff I left out from the "Golden Years" mod
Gargaroz
Programmer
 
Posts: 7097
Joined: 06 Nov 2009, 11:11
Has thanked: 82 times
Been thanked: 595 times

Re: Helix Pinnacle

Postby Gargaroz » 26 Jun 2013, 13:17

Fixed.
----
- Current / medium term task: adjusting the code for making Misdirection and such usable
- Long term task: inserting all the good stuff I left out from the "Golden Years" mod
Gargaroz
Programmer
 
Posts: 7097
Joined: 06 Nov 2009, 11:11
Has thanked: 82 times
Been thanked: 595 times

Re: Error - Crash

Postby Gargaroz » 26 Jun 2013, 13:19

Prolly due to the "is_enchanted" function. It should be fixed now.
----
- Current / medium term task: adjusting the code for making Misdirection and such usable
- Long term task: inserting all the good stuff I left out from the "Golden Years" mod
Gargaroz
Programmer
 
Posts: 7097
Joined: 06 Nov 2009, 11:11
Has thanked: 82 times
Been thanked: 595 times

Re: [check if fixed with new update]Abyssal Prosecutor

Postby Aswan jaguar » 26 Jun 2013, 15:00

There is a misunderstanding in some cases reported above as Abyssal Prosecutor can't let YOU win a game or opponents LOSE a game,so opponents can win a game through any card saying so or any other MTG way.
---
Trying to squash some bugs and playtesting.
User avatar
Aswan jaguar
Super Tester Elite
 
Posts: 8131
Joined: 13 May 2010, 12:17
Has thanked: 748 times
Been thanked: 479 times

Re: [confirmed]infect and first strike

Postby Korath » 26 Jun 2013, 17:07

Whenever counter_power or counter_toughness change, but at minimum in the changes in counters.c (since they're called most frequently): true_add_1_1_counters(), remove_1_1_counter(), true_add_minus1_minus1_counters(), remove_minus1_minus1_counter(), and remove_all_counters().
User avatar
Korath
DEVELOPER
 
Posts: 3708
Joined: 02 Jun 2013, 05:57
Has thanked: 496 times
Been thanked: 1108 times

Re: [confirmed]infect and first strike

Postby Gargaroz » 27 Jun 2013, 00:04

I'll do it.
----
- Current / medium term task: adjusting the code for making Misdirection and such usable
- Long term task: inserting all the good stuff I left out from the "Golden Years" mod
Gargaroz
Programmer
 
Posts: 7097
Joined: 06 Nov 2009, 11:11
Has thanked: 82 times
Been thanked: 595 times

Re: [confirmed]infect and first strike

Postby Korath » 27 Jun 2013, 01:12

I misread your first question, sorry.

Once 0x2000000 in card_instance_t::regen_status is set, the next call to get_abilities(player, card, EVENT_TOUGHNESS, anything) is called, it will do a full recalculation of that card's toughness.

After EVENT_DEAL_DAMAGE is sent, there's a TRIGGER_DEAL_DAMAGE; then all damage cards are removed; then each in-play creature card is checked to see whether damage_on_card is >= get_abilities(player, card, EVENT_TOUGHNESS, -1). That will be the first call to get_abilities after EVENT_DEAL_DAMAGE unless something responding to TRIGGER_DEAL_DAMAGE checks it.

Both the recalculate-power and recalculate-toughness bits are set (along with others; the bitfield used is 0x1F000000) after combat ends. The exact sequence is a TRIGGER_END_COMBAT to everything; STATE_ATTACKING/STATE_BLOCKING replaced with STATE_ATTACKED/STATE_BLOCKED on all cards; on all cards that have STATE_IN_PLAY set but not STATE_OUBLIETTED, regen_status |= 0x1F000000, then get_abilities(..., EVENT_SET_COLOR, -1) and get_abilities(..., EVENT_CHANGE_TYPE, -1); a whole lot of unknown globals are set; and then all in-play cards get a get_abilities(..., EVENT_TOUGHNESS, -1) and get_abilities(..., EVENT_POWER, -1) calls. The check to destroy cards with toughness <= 0 is also done within get_abilities(..., EVENT_TOUGHNESS, ...) if toughness is recalculated.
User avatar
Korath
DEVELOPER
 
Posts: 3708
Joined: 02 Jun 2013, 05:57
Has thanked: 496 times
Been thanked: 1108 times

[fixed by Gargaroz]Reflecting Pool

Postby HarlequinCasts » 27 Jun 2013, 02:04

Describe the Bug:
Reflecting Pool can not produce the correct mana with a vivid land in play. (Vivid Creek and Vivid Crag in example)

Also the screenshot shows it is not correctly showing mana that Exotic Orchard could produce.

Which card did behave improperly ?
Reflecting Pool

Which update are you using?(date,name)Which type(Duel,Gauntlet,Sealed Deck)
PWNMv2

What exactly should be the correct behavior/interaction ?
Reflecting Pool should be able to produce WUBRG with any vivid land in play, even a vivid land without any tokens.
Reflecting Pool should be able to produce any color mana that Exotic Orchard can currently produce.

Are any other cards possibly affected by this bug ?
Uncertain, but the vivid lands it should be aware of are:
Vivid Crag
Vivid Creek
Vivid Grove
Vivid Marsh
Vivid Meadow
and
Exotic Orchard
Attachments
manalink reflecting pool.png
Last edited by stassy on 28 Jun 2013, 03:52, edited 2 times in total.
Reason: bug fixed
User avatar
HarlequinCasts
 
Posts: 922
Joined: 07 May 2013, 14:33
Has thanked: 68 times
Been thanked: 30 times

Re: Reflecting Pool

Postby Korath » 27 Jun 2013, 02:22

It'll also produce {1} if you control no other lands. Last ruling here says it should be tappable but produce no mana. All the issues here affect Sylvok Explorer too.

(defective) diff | Open
Code: Select all
diff --git a/src/functions/functions.c b/src/functions/functions.c
index 7ffdc88..e8078a1 100644
--- a/src/functions/functions.c
+++ b/src/functions/functions.c
@@ -657,8 +657,8 @@ int get_color_of_mana_produced_by_id(int id, int hard_coded_color, int player){
         int color = 0;
         while(count < active_cards_count[player] && color < 62 ){
                                card_data_t* card_d = get_card_data(player, count);
-                               if((card_d->type & TYPE_LAND) && in_play(player, count)){
-                                       color |= card_d->color;
+                               if((card_d->type & TYPE_LAND) && in_play(player, count) && card_d->id != CARD_ID_REFLECTING_POOL){
+                                       color |= get_card_instance(player, count)->mana_color;
                                }
                                count++;
         }
@@ -737,8 +737,8 @@ int get_color_of_mana_produced_by_id2(int id, int hard_coded_color, int player){
         int color = 0;
         while(count < active_cards_count[player] && color < 62 ){
                                card_data_t* card_d = get_card_data(player, count);
-                               if((card_d->type & TYPE_LAND) && in_play(player, count)){
-                                       color |= card_d->color;
+                               if((card_d->type & TYPE_LAND) && in_play(player, count) && card_d->id != CARD_ID_REFLECTING_POOL){
+                                       color |= get_card_instance(player, count)->mana_color;
                                }
                                count++;
         }
almost fixes it. (The exe uses card_instance_t::mana_color, not card_data_t::color, to draw the mana stripes, and that's what I use here; and if reflecting pool's id isn't excluded, it'll still produce colorless without non-reflecting-pool lands present.)

I'm still seeing two bugs with this:
  • Activating a Reflecting Pool that can't produce any mana types doesn't tap it.
  • When the last counter is removed from a Vivid Crag, Reflecting Pools aren't updated to lose the extra colors until the end of the phase. Not just a display issue, either; I can still tap it for any color mana.
Last edited by Korath on 27 Jun 2013, 02:55, edited 3 times in total.
User avatar
Korath
DEVELOPER
 
Posts: 3708
Joined: 02 Jun 2013, 05:57
Has thanked: 496 times
Been thanked: 1108 times

Re: Reflecting Pool

Postby HarlequinCasts » 27 Jun 2013, 02:29

Korath wrote:It'll also produce {1} if you control no other lands. Last ruling here says it should be tappable but produce no mana.
Good catch. I also am not certain how Reflecting Pool would work with Just a Mishra's Workshop in play...
User avatar
HarlequinCasts
 
Posts: 922
Joined: 07 May 2013, 14:33
Has thanked: 68 times
Been thanked: 30 times

PreviousNext

Return to Archived Reports

Who is online

Users browsing this forum: No registered users and 12 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 12 users online :: 0 registered, 0 hidden and 12 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 12 guests

Login Form