Does the COLOUR_X constant work somehow?

I was trying to code Frontline Medic, happy to see that there's a constant called COLOUR_X. I thought it was a "virtual" color given to cards that have
in their mana costs. So I made this target definition:
Am I missing something, or COLOUR_X doesn't work at all?
Just in case someone has the same big idea as I had, the following code doesn't work either:
is greater than 0, but I could live with it), it doesn't work at all, and if I remember well it's not the first time that I try to mark objects on the stack: I think it's something that the game can't do, no matter what.

- Code: Select all
<TARGET_DEFINITION id="0">
local filter = Object():GetFilter()
filter:Clear()
filter:SetZone( ZONE_STACK )
filter:SetStackObjectType( STACK_OBJECT_CARD )
filter:AddColour( COLOUR_X )
filter:SetHint( HINT_ENEMY_ONLY, EffectController() )
</TARGET_DEFINITION>
Am I missing something, or COLOUR_X doesn't work at all?

Just in case someone has the same big idea as I had, the following code doesn't work either:
- Code: Select all
<TARGET_DEFINITION id="0">
MTG():ClearFilterMarkedObjectsInZone( ZONE_STACK )
local filter = Object():GetFilter()
filter:Clear()
filter:SetZone( ZONE_STACK )
filter:SetStackObjectType( STACK_OBJECT_CARD )
local filter_count = filter:EvaluateObjects()
for i=0,filter_count-1 do
local candidate = filter:GetNthEvaluatedObject(i)
local chest = candidate:GetDataChest()
if chest ~= nil and chest:Get_Int( COMPARTMENT_ID_X ) > 0 then
candidate:MarkForFilter()
end
end
filter:SetMarkedObjectsOnly()
filter:SetHint( HINT_ENEMY_ONLY, EffectController() )
</TARGET_DEFINITION>
