It is currently 19 Apr 2024, 14:07
   
Text Size

[fixed/clos]Delirium doesn't trigger when 4 card types in gy

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

[fixed/clos]Delirium doesn't trigger when 4 card types in gy

Postby stassy » 15 Aug 2016, 19:43

Attachments
1.zip
(3.27 KiB) Downloaded 133 times
Last edited by BAgate on 05 Sep 2016, 01:37, edited 2 times in total.
Reason: closed
stassy
Moderator
 
Posts: 5274
Joined: 25 Feb 2009, 07:06
Has thanked: 471 times
Been thanked: 337 times

Re: Delirium doesn't trigger when 4 card types in gy

Postby Korath » 15 Aug 2016, 22:01

Code: Select all
int delirium(int player){
        // Delirium - if there are four or more card types among cards in your graveyard...
        return count_types_in_grave(player) > 4 ? 1 : 0;
}
The problem here should be pretty clear even if you don't speak C (other than the "? 1 : 0" at the end, which doesn't actually do anything anyway).

Fixed in f37d81a.
User avatar
Korath
DEVELOPER
 
Posts: 3707
Joined: 02 Jun 2013, 05:57
Has thanked: 496 times
Been thanked: 1106 times

Re: [fixed]Delirium doesn't trigger when 4 card types in gy

Postby Aswan jaguar » 24 Aug 2016, 16:14

The fix for delirium fixes it for all cards right?Can this make strange bugs happen? I noticed for 2 cards one is Moorland Drifter that when delirium triggered it gained vigilance.(Moorland Drifter had flying when cast.This I will report separately in case it is a different bug).
---
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: [fixed]Delirium doesn't trigger when 4 card types in gy

Postby Korath » 24 Aug 2016, 17:45

It solely affects whether delirium is on or off. Moorland Drifter is something else.
User avatar
Korath
DEVELOPER
 
Posts: 3707
Joined: 02 Jun 2013, 05:57
Has thanked: 496 times
Been thanked: 1106 times


Return to Archived Reports

Who is online

Users browsing this forum: No registered users and 35 guests


Who is online

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

Login Form