It is currently 08 Jul 2021, 00:18
   
Text Size

[fixed/closed]Warmonger's Chariot

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

[fixed/closed]Warmonger's Chariot

Postby Aswan jaguar » 28 Oct 2013, 08:42

Describe the Bug:
Warmonger's Chariot doesn't give the ability to attack to all creatures with Defender (Walls can't attack). It gives the ability only to creatures with type Defender which is wrong.

Which card did behave improperly ?
Warmonger's Chariot

Which update are you using?(date,name)Which type(Duel,Gauntlet,Sealed Deck)
ML3-Onslaught.v2

What exactly should be the correct behavior/interaction ?
Warmonger's Chariot grants it's ability to all creatures with Defender ability so to Walls,too(Unless there is a Wall without Defender that I don't know of)

Are any other cards possibly affected by this bug ?
Attachments
warmonger's chariot.rar
(2.19 KiB) Downloaded 87 times
Last edited by BAgate on 12 Jan 2014, 00:11, edited 3 times in total.
Reason: closed
---
Trying to squash some bugs and playtesting.
User avatar
Aswan jaguar
Super Tester Elite
 
Posts: 7450
Joined: 13 May 2010, 12:17
Has thanked: 639 times
Been thanked: 351 times

Re: Warmonger's Chariot doesn't grand ability to all

Postby Gargaroz » 30 Oct 2013, 15:48

The problem is that everything that is set as "wall" in "ct_all" cannot attack at all unless something like Animate Wall is in play. Since I don't know what exactly Animate Wall do, I'll have to left this bug is Korath's hands.
----
- 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: 7095
Joined: 06 Nov 2009, 11:11
Has thanked: 82 times
Been thanked: 593 times

Re: Warmonger's Chariot doesn't grand ability to all

Postby Korath » 30 Oct 2013, 19:08

card_animate_wall | Open
Code: Select all
int
card_animate_wall(int player, int card, event_t event)
{
  card_instance_t* instance = get_card_instance(player, card);

  if (event == EVENT_CAN_CAST)
    return some_indecipherable_frontend_to_real_target_available(player, card);

  if (event == EVENT_CAST_SPELL && affect_me(player, card))
    {
      load_text(NULL, "TARGET_WALL");
      if (!some_indecipherable_frontend_to_real_select_target(player, card, text_lines[0]))
        spell_fizzled = 1;
      return 0;
    }

  if (event == EVENT_RESOLVE_SPELL)
    {
      if (some_indecipherable_frontend_to_validate_target(player, card, instance->targets[0].player, instance->targets[0].card))
        {
          instance->damage_target_player = instance->targets[0].player;
          instance->damage_target_card = instance->targets[0].card;
        }
      else
        {
          kill_card(player, card, KILL_BURY);
          spell_fizzled = 1;
        }
      instance->number_of_targets = 0;
    }

  if (event == EVENT_ABILITIES
      && instance->damage_target_card != -1
      && affect_me(instance->damage_target_player, instance->damage_target_card)
      && !(instance->token_status & STATUS_DYING))
    {
      card_instance_t* tgtinst = get_card_instance(instance->damage_target_player, instance->damage_target_card);
      tgtinst->token_status |= STATUS_WALL_CAN_ATTACK;
    }

  if (event == EVENT_GRAVEYARD_FROM_PLAY
      && instance->damage_target_card != -1
      && affect_me(player, card))
    {
      card_instance_t* tgtinst = get_card_instance(instance->damage_target_player, instance->damage_target_card);
      tgtinst->token_status &= ~STATUS_WALL_CAN_ATTACK;
    }

  return 0;
}
User avatar
Korath
DEVELOPER
 
Posts: 3522
Joined: 02 Jun 2013, 05:57
Has thanked: 491 times
Been thanked: 1037 times

Re: [confirmed]Warmonger's Chariot doesn't grand ability to

Postby BAgate » 25 Nov 2013, 21:14

Still a bug as of PTT. Don't know if this interacts with http://www.slightlymagic.net/forum/viewtopic.php?f=86&t=12364 or if we want to combine the two.
Working on: housekeeping and archived reports
User avatar
BAgate
Tester
 
Posts: 2445
Joined: 06 Mar 2012, 11:09
Has thanked: 117 times
Been thanked: 158 times

Re: [confirmed]Warmonger's Chariot doesn't grand ability to

Postby Korath » 14 Dec 2013, 02:24

Fixed as part of d5321d9.
User avatar
Korath
DEVELOPER
 
Posts: 3522
Joined: 02 Jun 2013, 05:57
Has thanked: 491 times
Been thanked: 1037 times


Return to Archived Reports

Who is online

Users browsing this forum: No registered users and 5 guests


Who is online

In total there are 5 users online :: 0 registered, 0 hidden and 5 guests (based on users active over the past 10 minutes)
Most users ever online was 1922 on 07 Jun 2021, 06:01

Users browsing this forum: No registered users and 5 guests

Login Form