Page 1 of 1

[still bugged]Jeleva, Nephalia's Scourge

PostPosted: 16 Jan 2014, 18:51
by stassy
Describe the Bug:
- When Jeleva, Nephalia's Scourge is cast, game ask for target player and the 4 1st cards of lib will be exiled
- If no sorcery or instant are exiled, random thing happen such as being able to cast cards not existing in the whole decks (basic lands), and playing them will create others cards (choosing Swamp result in playing an Island)
- All Jeleva, Nephalia's Scourge share the same exiled cards list, if you cast another the exiled cards will not stack


Which card did behave improperly ?
Jeleva, Nephalia's Scourge

Which update are you using?(date,name)Which type(Duel,Gauntlet,Sealed Deck)
Jan 01, 2014 : Commanding the revision of Ice Age v2 - DUEL

What exactly should be the correct behavior/interaction ?
- When Jeleva, Nephalia's Scourge is cast, all players exile 4 target cards from their lib
- If no sorcery or instant are exiled, random things does not happen
- All Jeleva, Nephalia's Scourge does not share the same exiled cards list, if you cast another the exiled cards will trigger and stack

Are any other cards possibly affected by this bug ?
-

Image

Image

Image

Image

Image

Re: Jeleva, Nephalia's Scourge

PostPosted: 16 Jan 2014, 21:54
by RanDomino
I tried it with a regular deck and it one instant and three other cards. The popup window on attack showed the correct instant, but also a plains and a swamp, neither of which were exiled.
Then I tried it with a deck of all instants (the deck I used to beat Instant Gratification), and she hit three instants and a land. Then I gave her haste (with Need for Speed) and attacked, and the popup showed the three appropriate instants and no other cards. I attacked and cast an Accumulated Knowledge, and it cast correctly, but did not remove the copy in the out-of-play area. Next turn I attacked again and the popup showed the two remaining instants and additionally a Swamp and Plains... and playing the Swamp actually cast one of the other instants... However, then I b'd the Jeleva and cast a second one, and it (correctly) did not use the first one's exiled cards. But it still casts the wrong spells.

Re: [Confirmed]Jeleva, Nephalia's Scourge

PostPosted: 06 Feb 2014, 22:50
by Nexhro
Also, casting it from the command zone asks for target player, but doesn't exile any cards at all when entering the battlefield.

Re: [Confirmed]Jeleva, Nephalia's Scourge

PostPosted: 03 Jul 2014, 13:44
by Gargaroz
All fixed in a3859df

Re: [all fixed]Jeleva, Nephalia's Scourge

PostPosted: 14 Sep 2014, 13:08
by Nexhro
As of CoRM15, only Jeleva's controller exiles cards from his/her library when Jeleva enters teh battlefield. The number of cards that are exiled this way is correctly adjusted to the amount of mana spent to cast Jeleva.

Clicking it in order to cast a spell when it attacks crashes the client.

Re: [still bugged]Jeleva, Nephalia's Scourge

PostPosted: 06 Dec 2014, 14:23
by Nexhro
As of KOT, the client doesn't crash when attempting to use the optional attack trigger, but Jeleva's controller doesn't get to choose a spell to cast either. Clicking Jeleva doesn't result in a card selection window popping up. The ability seemingly resolves, but does not do anything..

Re: [still bugged]Jeleva, Nephalia's Scourge

PostPosted: 09 Feb 2017, 13:15
by Aswan jaguar
Jeleva, Nephalia's Scourge still crashes in my case opponent's graveyard had an instant Lava Dart mine didn't have any instants or sorceries if that is the problem.
The error report: | Open
Event Type: Error
Event Source: Application Error
Event Category: None
Event ID: 1000
Date: 9/2/2017
Time: 3:08:18 μμ
User: N/A
Computer: ASWAN_JAGUAR
Description:
Faulting application magic.exe, version 7.0.0.0, faulting module manalinkeh.dll, version 0.0.0.0, fault address 0x0008b680.

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
Data:
0000: 41 70 70 6c 69 63 61 74 Applicat
0008: 69 6f 6e 20 46 61 69 6c ion Fail
0010: 75 72 65 20 20 6d 61 67 ure mag
0018: 69 63 2e 65 78 65 20 37 ic.exe 7
0020: 2e 30 2e 30 2e 30 20 69 .0.0.0 i
0028: 6e 20 6d 61 6e 61 6c 69 n manali
0030: 6e 6b 65 68 2e 64 6c 6c nkeh.dll
0038: 20 30 2e 30 2e 30 2e 30 0.0.0.0
0040: 20 61 74 20 6f 66 66 73 at offs
0048: 65 74 20 30 30 30 38 62 et 0008b
0050: 36 38 30 0d 0a 680..

And as mentioned by the post above no menu is opening when you select to use it's trigger or no legacies are created whichever is used so you can't play the cards when it doesn't crash.

Re: [still bugged]Jeleva, Nephalia's Scourge

PostPosted: 01 Nov 2019, 17:09
by Aswan jaguar
Fixed the crash and now you can cast successfully your own spells if player is human but not AI's also AI can play human's spells but not it's own.
Code: Select all
int card_jeleva_nephalias_scourge(int player, int card, event_t event ){
   /*
     Jeleva, Nephalia's Scourge English |1|U|B|R
     Legendary Creature - Vampire Wizard 1/3
     Flying
     When Jeleva, Nephalia's Scourge enters the battlefield, each player exiles the top X cards of his or her library,
     where X is the amount of mana spent to cast Jeleva.
     Whenever Jeleva attacks, you may cast an instant or sorcery card exiled with it without paying its mana cost.
   */

   store_mana_paid_to_play_this(player, card, event);

   check_legend_rule(player, card, event);

   etb_ability(player, card, event, RESOLVE_TRIGGER_MANDATORY);

   if( event == EVENT_ETB_ABILITY ){
      card_instance_t *instance = get_card_instance(player, card);
      int amount = instance->targets[3].card;
      if( amount ){
         int i, leg = 0, idx = 0;
         for(i=0; i<2; i++){
            int p = i == 0 ? player : 1-player;
            int *deck = deck_ptr[p];
            int to_remove = MIN(count_deck(p), amount);
            if( to_remove > 0 ){
               show_deck( player, deck, to_remove, "Cards exiled by Jeleva", 0, 0x7375B0 );
               while( to_remove ){
                     if( is_what(-1, deck[0], TYPE_SPELL) && ! is_what(-1, deck[0], TYPE_CREATURE) ){
                        exiledby_remember(player, card, p, deck[0], &leg, &idx);
                        instance->info_slot++;
                     }
                     rfg_card_in_deck(p, 0);
                     to_remove--;
               }
            }
         }
      }
   }

      if (declare_attackers_trigger(player, card, event, (player == AI ? (get_card_instance(player, card)->info_slot ?
                           RESOLVE_TRIGGER_MANDATORY : 0) : RESOLVE_TRIGGER_OPTIONAL), player, card) )
   {
      card_instance_t *instance = get_card_instance(player, card);
         int rval = exiledby_choose(player, card, CARD_ID_JELEVA_NEPHALIAS_SCOURGE, EXBY_CHOOSE, 0, "spell", 1);
         int* loc = (int*)rval;
         if( loc ){
            int *loc2 = exiledby_find(player, card, *loc, NULL, NULL);
            if( *loc2 > -1 ){
               int p = *loc2 & 0x80000000;
               int iid = *loc2 & ~0x80000000;
               *loc2 = -1;
               if( remove_card_from_rfg(p, cards_data[iid].id) ){
                  play_card_in_exile_for_free(player, p, cards_data[iid].id);
               }
               instance->info_slot--;
            }
         }
   }

   return 0;
}