It is currently 05 Jul 2025, 15:16
   
Text Size

Jarad, Golgari Lich ability broken

Moderator: CCGHQ Admins

Jarad, Golgari Lich ability broken

Postby Lurker » 14 Dec 2024, 19:24

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)
Attachments
Jarad Bug.png
Jarad's activated Sacrifice ability is bugged
Lurker
 
Posts: 3
Joined: 23 Jul 2022, 16:15
Has thanked: 1 time
Been thanked: 1 time

Re: Jarad, Golgari Lich ability broken

Postby RiiakShiNal » 16 Dec 2024, 13:50

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
RiiakShiNal
Programmer
 
Posts: 2188
Joined: 16 May 2011, 21:37
Has thanked: 75 times
Been thanked: 497 times


Return to 2014

Who is online

Users browsing this forum: No registered users and 14 guests

Main Menu

User Menu

Our Partners


Who is online

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

Login Form