It is currently 24 Apr 2024, 14:15
   
Text Size

[fixed]Golgari Decoy didn't force block

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

[fixed]Golgari Decoy didn't force block

Postby etphonehome » 11 Dec 2021, 21:30

When Golgari Decoy attacked it didn't forced all creatures to block it.

THX
Attachments
Golgari Decoy.rar
(2.19 KiB) Downloaded 92 times
Captura de ecrã 2021-12-11 212758.jpg
Last edited by drool66 on 17 Dec 2021, 15:30, edited 2 times in total.
Reason: fixed
etphonehome
 
Posts: 299
Joined: 21 May 2020, 12:50
Has thanked: 270 times
Been thanked: 39 times

Re: Golgari Decoy didn't force block

Postby Aswan jaguar » 12 Dec 2021, 11:09

Yes, I confirm this also in dev. The ability is broken and doesn't force blockers.
---
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]Golgari Decoy didn't force block

Postby Korath » 12 Dec 2021, 11:18

Broken in commit 56d942f8af. -1 in a bitfield means all bits set, not none - if lure_effect() is told no abilities are required, it requires everything in keyword_t.
User avatar
Korath
DEVELOPER
 
Posts: 3707
Joined: 02 Jun 2013, 05:57
Has thanked: 496 times
Been thanked: 1106 times

Re: [confirmed]Golgari Decoy didn't force block

Postby Aswan jaguar » 14 Dec 2021, 13:12

The issues I introduced in commit 56d942f8af seem fixed in commit 1b95f21.
However despite commit 56d942f8af something else breaks some auras. This doesn't get fixed by switching to new aura functions tested with Lure.
Broken auras:
Indrik Umbra - totem_armor()
Lure, Seton's Desire - generic_aura()
Tempting Licid - generic_licid()
Auras that work correctly using different functions than above and force block:
Noble Quarry using generic_creature_with_bestow() when it is an aura.
Gift of the Deity using aura_ability_for_color()
---
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]Golgari Decoy didn't force block

Postby Korath » 14 Dec 2021, 22:03

For Lure itself, the problem is that generic_aura() isn't calling special_abilities() except during EVENT_ABILITIES. It needs EVENT_TRIGGER and EVENT_RESOLVE_TRIGGER during TRIGGER_MUST_BLOCK, too. (It's a really horrible design. special_abilities() shouldn't need to be called at all - setting the bit should be enough.) I haven't tried the other cards above. Some of the other SP_KEYWORD_* bits will need other events, too.
User avatar
Korath
DEVELOPER
 
Posts: 3707
Joined: 02 Jun 2013, 05:57
Has thanked: 496 times
Been thanked: 1106 times

Re: [confirmed]Golgari Decoy didn't force block

Postby drool66 » 14 Dec 2021, 23:11

That's right - I forgot that I needed to, at the very least, take special_abilities() out from under EVENT_ABILITIES
Fixed in 6f817f7 and tested working
User avatar
drool66
Programmer
 
Posts: 1163
Joined: 25 Nov 2010, 22:38
Has thanked: 186 times
Been thanked: 267 times

Re: [confirmed]Golgari Decoy didn't force block

Postby Korath » 14 Dec 2021, 23:53

Without having looked at your commit, I've got concerns. With the current design of special_abilities(), everything annotated in sp_keyword_t as "can't be added by bit" and/or "must be called continuously" - about a third of the bits - can't be guarded by IS_AURA_EVENT(). That's just begging for more problems like this down the line.
User avatar
Korath
DEVELOPER
 
Posts: 3707
Joined: 02 Jun 2013, 05:57
Has thanked: 496 times
Been thanked: 1106 times

Re: [confirmed]Golgari Decoy didn't force block

Postby Aswan jaguar » 16 Dec 2021, 06:11

drool66 are you doing any more work on this? If not mark it fixed and archive this, please.
---
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]Golgari Decoy didn't force block

Postby drool66 » 17 Dec 2021, 15:30

I guess so. The cards work, but only because none of them check IS_AURA_EVENT. The bigger issue is the sp_keyword abilities that need to be called outside of EVENT_ABILITIES. I would think we should have a bug report open to address that. For now I'll close this one and put sp_keywords on my to do list.
User avatar
drool66
Programmer
 
Posts: 1163
Joined: 25 Nov 2010, 22:38
Has thanked: 186 times
Been thanked: 267 times


Return to Archived Reports

Who is online

Users browsing this forum: No registered users and 19 guests


Who is online

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

Login Form