It is currently 13 Jul 2025, 02:13
   
Text Size

[fixed] Kessig Wolf Run not trampling PWs

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

[fixed] Kessig Wolf Run not trampling PWs

Postby gnomefry » 23 Mar 2022, 22:18

Describe the Bug:

When attacking a planeswalker, my blocked creature's Kessig Wolf Run bonus doesn't trample excess damage onto the PW. The creature acquires the trample icon and indeed tramples, but unsoaked damage instead goes to the PW's controller.

When I reload the save and repeat the scenario using a Chorus of Might instant instead of the Kessig land, the creature's excess damage properly spills over to the PW.

Which update are you using? (date, name)Which type? (duel, gauntlet, sealed deck)

Holidays 2021 ad1a6f8 - gauntlet

What exactly should be the correct behavior/interaction?

Trample spills damage in excess of the defender's toughness onto the PW target.

Are any other cards possibly affected by this bug?
Attachments
kessigwolfrun.rar
(4.17 KiB) Downloaded 138 times
Last edited by drool66 on 05 May 2022, 20:36, edited 4 times in total.
Reason: fixed, I think
User avatar
gnomefry
Tester
 
Posts: 288
Joined: 28 Dec 2018, 00:44
Has thanked: 25 times
Been thanked: 24 times

Re: Kessig Wolf Run not trampling PWs

Postby drool66 » 26 Mar 2022, 01:24

Confirmed on your save, but not in dev. I don't know how or when this would have been fixed though.
Unrelated, tap_card() needs to be removed from EVENT_ACTIVATE of Kessig Wolf Run
User avatar
drool66
Programmer
 
Posts: 1185
Joined: 25 Nov 2010, 22:38
Has thanked: 187 times
Been thanked: 280 times

Re: Kessig Wolf Run not trampling PWs

Postby Aswan jaguar » 26 Mar 2022, 12:32

The issue happens in dev, too. However the bug happens only when the attacker has bigger game id than Kessig Wolf Run. If attacker has lesser game id than Kessig Wolf Run then it tramples over to planeswalker.
---
Trying to squash some bugs and playtesting.
User avatar
Aswan jaguar
Super Tester Elite
 
Posts: 8129
Joined: 13 May 2010, 12:17
Has thanked: 748 times
Been thanked: 477 times

Re: [confirmed]Kessig Wolf Run not trampling PWs

Postby drool66 » 03 Apr 2022, 17:00

I don't see any reason that damage cards need to wait until EVENT_DEAL_DAMAGE to load the planeswalker being attacked into targets[4] - I think that can be done right in damage_creature() like this:
Code: Select all
  if (attacking)
   {
     if (current_phase == PHASE_FIRST_STRIKE_DAMAGE)
      dmg_inst->token_status |= STATUS_FIRST_STRIKE_DAMAGE;

     if (current_phase == PHASE_NORMAL_COMBAT_DAMAGE)
      dmg_inst->token_status |= STATUS_COMBAT_DAMAGE;

     if( (dmg_inst->token_status & (STATUS_FIRST_STRIKE_DAMAGE|STATUS_COMBAT_DAMAGE)) &&
               check_special_flags(src_player, src_card, SF_ATTACKING_PWALKER) )
      {
        dmg_inst->targets[4].player = 1-src_player;
        dmg_inst->targets[4].card = planeswalker_its_attacking(src_player, src_card);
      }
   }
...and then remove the relevant section from the attacking_planeswalker() legacy code. This does fix this bug, and maybe others; not sure if it complicates anything else. I'm also not sure if it ignores a bigger issue with keyword abilities.

Unrelated, the Soulfire Grand Master section needs to come after the sp_keywords are loaded into the damage card so the added SP_KEYWORD_LIFELINK bit isn't overwritten (my fault)

[EDIT] oh, duh. If the card order is wrong, the damage card will read its targets[4] before the attacking_planeswalker() legacy can change it since it's all done on EVENT_DEAL_DAMAGE :roll:
User avatar
drool66
Programmer
 
Posts: 1185
Joined: 25 Nov 2010, 22:38
Has thanked: 187 times
Been thanked: 280 times

Re: [fixed]Kessig Wolf Run not trampling PWs

Postby drool66 » 18 Apr 2022, 21:27

Fixed in f868fb1
User avatar
drool66
Programmer
 
Posts: 1185
Joined: 25 Nov 2010, 22:38
Has thanked: 187 times
Been thanked: 280 times

Re: [fixed]Kessig Wolf Run not trampling PWs

Postby Aswan jaguar » 19 Apr 2022, 13:53

Now all damage tramples over to Planeswalker and the blocking creature doesn't receive combat damage at all.
---
Trying to squash some bugs and playtesting.
User avatar
Aswan jaguar
Super Tester Elite
 
Posts: 8129
Joined: 13 May 2010, 12:17
Has thanked: 748 times
Been thanked: 477 times

Re: [still bug]Kessig Wolf Run not trampling PWs

Postby drool66 » 19 Apr 2022, 17:45

I see. The handling will have to be tweaked, but hopefully not overhauled completely.
[EDIT] I have it handled as far as I can tell, continuing to test.
[EDIT2] Changes pushed in bf4d5d7; hopefully we can find a way to do this without rebuilding the data, but it works for now.
User avatar
drool66
Programmer
 
Posts: 1185
Joined: 25 Nov 2010, 22:38
Has thanked: 187 times
Been thanked: 280 times


Return to Archived Reports

Who is online

Users browsing this forum: No registered users and 27 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 27 users online :: 0 registered, 0 hidden and 27 guests (based on users active over the past 10 minutes)
Most users ever online was 5050 on 26 Jun 2025, 06:02

Users browsing this forum: No registered users and 27 guests

Login Form