It is currently 19 Apr 2024, 00:06
   
Text Size

Zealots en-Dal doesn't work correctly with colorless cards

Report wrong Card behavior to get it fixed.
PLEASE ADD SAVEGAMES TO YOUR TOPIC !

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

Zealots en-Dal doesn't work correctly with colorless cards

Postby Aswan jaguar » 17 Mar 2020, 21:41

Describe the Bug:
Zealots en-Dal was gaining life at controllers upkeep without any restrictions. I have fixed the colored part so it won't trigger if controller has any colored non-land permanent card but white.
However everything I tried to make so it works also with colorless cards has failed. I can possibly make it work with non white artifacts, too but still not enough.
Current code:
Code: Select all
int card_zealots_en_dal(int player, int card, event_t event){
/*
Zealots en-Dal |3|W   0x200f516
Creature — Human Soldier 2/4
At the beginning of your upkeep, if all nonland permanents you control are white, you gain 1 life.
*/

   test_definition_t this_test;
   default_test_definition(&this_test, TYPE_LAND);
   this_test.type_flag = 1;

   test_definition_t this_test2;
   default_test_definition(&this_test2, TYPE_PERMANENT);
   this_test2.color = get_sleighted_color_test(player, card, COLOR_TEST_BLACK | COLOR_TEST_BLUE | COLOR_TEST_RED | COLOR_TEST_GREEN);

    upkeep_trigger_ability(player, card, event, player);

    if( event == EVENT_UPKEEP_TRIGGER_ABILITY ){
            if( check_battlefield_for_special_card(player, card, player, 0, &this_test) &&
                check_battlefield_for_special_card(player, card, player, 0, &this_test2)
              ){
               return 0;
            }
            else{
                 gain_life(player, 1);
            }
   }

   return 0;
}
Which card did behave improperly?
Zealots en-Dal

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

What exactly should be the correct behavior/interaction?
Zealots en-Dal triggers only if you have white non land permanents in play.

Are any other cards possibly affected by this bug?
-
---
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

Return to Bug Reports

Who is online

Users browsing this forum: No registered users and 35 guests


Who is online

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

Login Form