It is currently 08 Jul 2021, 04:32
   
Text Size

[fixed/closed] Immerwolf + werewolves

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

[fixed/closed] Immerwolf + werewolves

Postby jl415 » 29 Jan 2014, 23:50

Describe the Bug:
Bane of Hanweir doesn't lose defender (after extensive testing sometimes it does lose the defender status but I can't pin it down).

Which card did behave improperly ?
Bane of Hanweir

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

What exactly should be the correct behavior/interaction ?
Bane of Hanweir loses defender when transforming.

Are any other cards possibly affected by this bug ?
Immerwolf
Attachments
baneofhanweir.png
Last edited by BAgate on 23 Apr 2014, 04:20, edited 7 times in total.
Reason: closed
jl415
 
Posts: 81
Joined: 15 Aug 2013, 22:24
Has thanked: 3 times
Been thanked: 3 times

Re: Bane of Hanweir

Postby BAgate » 30 Jan 2014, 01:40

Works for me in a clean game. Could you include a savegame so we can check interactions?

Also, when referencing double-faced cards, try to include the front side name. It makes it a lot easier for us.
Attachments
hanweir.JPG
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: Bane of Hanweir

Postby jl415 » 30 Jan 2014, 01:55

Ah, sorry about that, I've edited the name.

Saved game attached, my suspicion is some sort of interaction with Immerwolf - when I cast it my Bane of Hanweir gets defender out of the blue.
Attachments
banofhanweir.rar
(1.73 KiB) Downloaded 82 times
jl415
 
Posts: 81
Joined: 15 Aug 2013, 22:24
Has thanked: 3 times
Been thanked: 3 times

Re: [confirmed]Hanweir Watchkeep / Bane of Hanweir

Postby BAgate » 30 Jan 2014, 02:30

It must have something to do with the Immerwolf, when you kill it the Bane of Hanweir loses defender.

Also, for some reason in your savegame my werewolves are transforming from human to non-human when I cast two spells in a turn (should only happen when no spells are cast).

Also, in a clean game these weird errors arise when Immerwolf is cast.
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]Hanweir Watchkeep / Bane of Hanweir

Postby jl415 » 30 Jan 2014, 02:46

Yeap, I really think it's to do with Immerwolf, just tried with another warewolf transformed creature, Terror of Kruin Pass (Kruin Outlaw), and it doesn't get double strike. If I bury Immerwolf it gets double strike.

Should I update the title to Immerwolf or the mods do that?
Attachments
terrorofkruinpass.rar
(2.42 KiB) Downloaded 86 times
jl415
 
Posts: 81
Joined: 15 Aug 2013, 22:24
Has thanked: 3 times
Been thanked: 3 times

Re: [confirmed]Hanweir Watchkeep / Bane of Hanweir

Postby BAgate » 30 Jan 2014, 03:53

Leave that sort of thing to us unless you are asked to do it.
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] Immerwolf + werewolves

Postby jl415 » 30 Jan 2014, 14:51

Thanks =)
jl415
 
Posts: 81
Joined: 15 Aug 2013, 22:24
Has thanked: 3 times
Been thanked: 3 times

Re: [confirmed] Immerwolf + werewolves

Postby Gargaroz » 31 Jan 2014, 01:30

Well, the code seems fine, I readjusted it a bit, consider it fixed.
----
- 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: [fixed by gargaroz] Immerwolf + werewolves

Postby BAgate » 12 Mar 2014, 03:54

Bane of Hanweir just got defender when I cast an Immerwolf, so this is still bugged.
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: [fixed by gargaroz] Immerwolf + werewolves

Postby jl415 » 12 Mar 2014, 05:38

BAgate wrote:Bane of Hanweir just got defender when I cast an Immerwolf, so this is still bugged.
I don't -.-
jl415
 
Posts: 81
Joined: 15 Aug 2013, 22:24
Has thanked: 3 times
Been thanked: 3 times

Re: [still bugged] Immerwolf + werewolves

Postby BAgate » 12 Mar 2014, 06:12

This is what I just got.
Attachments
immerwolf.JPG
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: [still bugged] Immerwolf + werewolves

Postby Korath » 12 Mar 2014, 06:26

Does the defender icon persist if you tap a land (which will force a recomputation)?

And can I get a step-by-step repro?
User avatar
Korath
DEVELOPER
 
Posts: 3522
Joined: 02 Jun 2013, 05:57
Has thanked: 491 times
Been thanked: 1037 times

Re: [still bugged] Immerwolf + werewolves

Postby BAgate » 12 Mar 2014, 07:34

Defender icon persists for at east 2 turns of normal gameplay.

To reproduce: I played a werewolf deck which naturally included Immerwolf (also tried in a pure test deck with same results). Death Wish to add Hanweir Watchkeep (since I don't normally play with it). Cast the Hanweir Watchkeep, let it transform, then cast Immerwolf. As soon as Immerwolf enters play the defender icon appears.

Savegame attached if that is any help.
Attachments
immer.rar
(2.32 KiB) Downloaded 82 times
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: [still bugged] Immerwolf + werewolves

Postby jl415 » 12 Mar 2014, 17:41

Yeap, I confirm too, just tried that.
jl415
 
Posts: 81
Joined: 15 Aug 2013, 22:24
Has thanked: 3 times
Been thanked: 3 times

Re: [still bugged] Immerwolf + werewolves

Postby Korath » 12 Mar 2014, 19:17

Fixed this symptom in 6f998b5. Not related to Immerwolf's influence on transformation at all, nor to this problem with transforming werewolves in both versions of BNG (which was also mentioned above).

This will affect any double-faced or flipping creature card that has different abilities in its transformed/flipped state than in its untransformed/unflipped state, and is currently in its transformed/flipped state; it'll show the untransformed/unflipped abilities as soon as an Immerwolf comes into play.

This is caused by a combination of two bugs:
  • Immerwolf's +1/+1 ability checked has_subtype() before checking event. This is poor practice in any case, since the overwhelming majority of function calls won't be of any given event, and checking event is many orders of magnitude faster than checking subtype.
  • has_subtype() calls is_changeling(), which in turn calls get_abilities(..., EVENT_ABILITIES). During recalculate_all_cards_in_play(), events are sent in order EVENT_SET_COLOR, EVENT_CHANGE_TYPE, EVENT_ABILITIES, EVENT_TOUGHNESS, EVENT_POWER, EVENT_STATIC_EFFECTS; if has_subtype() gets called before EVENT_CHANGE_TYPE or (if it's called before the card that changes its type is) during it, it computes abilities for the card's base type and clears KEYWORD_RECALC_ABILITIES so that, when EVENT_ABILITIES is sent from recalculate_all_cards_in_play(), it uses the cached value.
I've fixed both of these, each of which fixes the symptom in isolation: Immerwolf checks for EVENT_POWER or EVENT_TOUGHNESS before inspecting the affected card's subtypes, and is_changeling() stashes and restores the current keywords (including KEYWORD_RECALC_ABILITIES) around get_abilities(). The latter will make has_subtype() even more inefficient if called in the wrong order, the way Immerwolf used to, but will at least produce correct results.
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 3 guests


Who is online

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

Login Form