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

[confirmed]Harness the Storm spell cast from gy for free

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

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

[confirmed]Harness the Storm spell cast from gy for free

Postby Aswan jaguar » 27 Sep 2016, 14:41

Describe the Bug:
I had Harness the Storm in play and Riot Control in graveyard.I cast another Riot Control but Harness the Storm didn't trigger.

Which card did behave improperly ?
Harness the Storm

Which update are you using?(date,name)Which type(Duel,Gauntlet,Sealed Deck)
Manalink 2016/08/27: Eldritch Moon v2, duel

What exactly should be the correct behavior/interaction ?
Harness the Storm

Are any other cards possibly affected by this bug ?
-
Attachments
harness the storm no riot control.rar
(2.46 KiB) Downloaded 149 times
Last edited by Aswan jaguar on 08 Aug 2019, 16:18, edited 2 times in total.
Reason: strikethrough fixed-rename to current 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

Re: [confirmed]Harness the Storm ability not triggering

Postby Aswan jaguar » 20 Sep 2018, 12:36

Harness the Storm ability is triggering if you cast instant or sorcery but only if there is a Harness the Storm card in your graveyard and then it prompts for a Harness the Storm card and casts that card. Tested in dev 778ccb5 version but I believe it's the same in emnv2.
---
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: [confirmed]Harness the Storm ability not triggering

Postby Aswan jaguar » 08 Aug 2019, 16:16

Fixed triggering issues in 9b29bb8e. It also plays the instant or sorcery from graveyard for free. I can't find a way to make it be cast for it's cost, everything I tried using charge_mana_from_id() led to crashes.
Current code:
Code: Select all
int card_harness_the_storm(int player, int card, event_t event){
   /* Harness the Storm   |2|R   0x200ea26
    * Enchantment
    * Whenever you cast an instant or sorcery spell from your hand, you may cast target card with the same name
    * as that spell from your graveyard. */

   if( in_play(player, card) && ! is_humiliated(player, card) ){
      if( trigger_condition == TRIGGER_SPELL_CAST && affect_me(player, card)
         && player == reason_for_trigger_controller && player == trigger_cause_controller){
         if( ! not_played_from_hand(trigger_cause_controller, trigger_cause) ){
            int name = get_card_name(trigger_cause_controller, trigger_cause);
            
                char buffer[500];
            scnprintf(buffer, 500, "Select a card name %s.", cards_ptr[name]->name);
            test_definition_t this_test;
            new_default_test_definition(&this_test, TYPE_SPELL, buffer);
            this_test.id = name;

            if( new_special_count_grave(player, &this_test) ){
               if( new_specific_spell_played(player, card, event, player, RESOLVE_TRIGGER_AI(player), &this_test) ){
                  int selected = new_select_a_card(player, player, TUTOR_FROM_GRAVE, 0, AI_FIRST_FOUND, -1, &this_test);
                  if( selected != -1 ){
                       play_card_in_grave_for_free(player, player, selected);

                  }
               }
            }
         }
      }
   }

   return global_enchantment(player, card, event);
}
---
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 74 guests


Who is online

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

Login Form