Page 1 of 1

Jarad, Golgari Lich ability broken

PostPosted: 14 Dec 2024, 19:24
by Lurker
I know it's a long shot, but maybe someone knowlegeable can take a look at Jarad's code here and figure out why his activated ability allows him to choose an opponent's creature to sacrifice? (it is not sacrificed, but the opponent loses life still). This is an old bug, there was a message about it in CW discord back in 2018, but no solution still. I've tried to figure something myself, but so far understood only that this code is quite a lot more complicated than similar "sacrifice" code for other creatures (like Kheru Dreadmaw)

Re: Jarad, Golgari Lich ability broken

PostPosted: 16 Dec 2024, 13:50
by RiiakShiNal
It is broken because the filter in both the cost's prerequisite and cost's resolution does not limit the filter to just the EffectController's creatures (which is why it is allowing to choose another player's creatures). If the additional filter condition is put in then it should fix it.

Code: Select all
filter:Add(FE_CONTROLLER, OP_IS, EffectController())
Here is a good page on filtering: Filters and Interrogations