Page 1 of 1

[fixed/closed]Kalonian Hydra doesn't double

PostPosted: 13 Dec 2013, 10:52
by BAgate
Describe the Bug:
Kalonian Hydra does not double the number of +1/+1 counters on itself when it attacks.

Which card did behave improperly ?
Kalonian Hydra

Which update are you using?(date,name)Which type(Duel,Gauntlet,Sealed Deck)
16/11/2013 : Portals to Theros - DUEL

What exactly should be the correct behavior/interaction ?
It should double the number of counters on all creatures you control, including itself.

Are any other cards possibly affected by this bug ?
no

Note: previous bug on this card: http://www.slightlymagic.net/forum/viewtopic.php?f=110&t=12082&p=134639&hilit=kalonian#p134639

Re: Kalonian Hydra

PostPosted: 13 Dec 2013, 12:02
by stassy
This is peculiar, because in your savegame, the current Kalonian Hydra doesn't double its counter, but if I cast another one it work, and in a clean game it work also :

Image

Image

Something must have happened to the one in the bf so it cannot gain counter anymore, because it doesn't gain counters from the other Kalonian Hydra while the Phantom Nantuko did...

Image

There is also to note that none of the Kalonian Hydra newly cast interacted with Oran-Rief, the Vastwood

Re: Kalonian Hydra

PostPosted: 13 Dec 2013, 12:23
by BAgate
huh, you're right. The only difference I can think of is it received the extra counter from oran-rief, the vastwood. But that doesn't make any sense...

And in a clean game made no difference. I'm stumped.

Re: Kalonian Hydra

PostPosted: 13 Dec 2013, 12:37
by stassy
Tested Kalonian Hydra and Oran-Rief, the Vastwood in a clean game and they did interact correctly:

Image

Can you post your decks so we can test them out? I am out of option for it.

Re: Kalonian Hydra

PostPosted: 13 Dec 2013, 12:45
by BAgate
Opponent was a random deck, but here is the one I was using.

Re: [unconfirmed]Kalonian Hydra

PostPosted: 19 Oct 2015, 04:59
by BAgate
Happened again. Doubles counters on all other creatures but not itself.

Fate Reforged patch.

Re: [unconfirmed]Kalonian Hydra

PostPosted: 19 Oct 2015, 07:10
by Korath
It'll happen when the Hydra is at id 0. (Rather, if a creature is at id 0, whether or not it's the hydra, that creature won't get counters.)
Code: Select all
/* 1*/int card_kalonian_hydra(int player, int card, event_t event){
/* 2*/
/* 3*/    // ~ enters the battlefield with four +1/+1 counters on it.
/* 4*/    enters_the_battlefield_with_counters(player, card, event, COUNTER_P1_P1, 4);
/* 5*/
/* 6*/    // Whenever ~ attacks, double the number of +1/+1 counters on each creature you control.
/* 7*/    if (declare_attackers_trigger(player, card, event, 0, player, card)){
/* 8*/        int count = active_cards_count[player]-1;
/* 9*/        while( count > -1 ){
/*10*/                if( in_play(player, count) && is_what(player, count, TYPE_CREATURE) ){
/*11*/                    int amount = count_1_1_counters(player, count);
/*12*/                    if( count > 0 ){
/*13*/                        add_1_1_counters(player, count, amount);
/*14*/                    }
/*15*/                }
/*16*/                count--;
/*17*/        }
/*18*/    }
/*19*/
/*20*/    return 0;
/*21*/}
Line 12 is the problem; it was intended to be (amount > 0) instead. The worst part of it is that it's completely redundant; add_1_1_counters(player, count, 0) is harmless.

Re: [confirmed]Kalonian Hydra doesn't double

PostPosted: 24 Nov 2015, 05:59
by Korath
Fixed 315eb22.