It is currently 18 Apr 2024, 20:22
   
Text Size

[fixed] TYPE_NONCREATURE doesn't mean that

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

[fixed] TYPE_NONCREATURE doesn't mean that

Postby Korath » 18 Jul 2021, 21:17

(Sorry for not using the form, it's a bad fit and I haven't actually tested this, or even built yet.)

Everything here also applies to the similarly-new TYPE_NONLAND.

Code: Select all
TYPE_NONCREATURE      = TYPE_LAND | TYPE_ENCHANTMENT | TYPE_ARTIFACT | TYPE_SPELL,
Defining TYPE_NONCREATURE like that, and then using it in a form that eventually becomes "type & TYPE_NONCREATURE" - as just about all current uses do - doesn't mean "is only one or more of land, enchantment, artifact, instant, interrupt, or sorcery", it means "is one or more of enchantment, artifact, instant, interrupt, or sorcery". That is, is_what(cardid, TYPE_NONCREATURE) will be true for Dryad Arbor, Lucent Liminid, Obsianus Golem, and Visitor from Planet Q. You really do have to end up using !(type & TYPE_CREATURE). Should be easiest to test with Fae of Wishes // Granted.
Last edited by drool66 on 21 Jul 2021, 21:31, edited 1 time in total.
Reason: fixed
User avatar
Korath
DEVELOPER
 
Posts: 3707
Joined: 02 Jun 2013, 05:57
Has thanked: 496 times
Been thanked: 1106 times

Re: [fixed] TYPE_NONCREATURE doesn't mean that

Postby drool66 » 21 Jul 2021, 21:32

Thanks, Korath
Fixed, currently checking full functionality.
EDIT: fixed in 81dc2e4
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 25 guests


Who is online

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

Login Form