Board index Programs with AI or Rules Enforcement Magic: The Gathering - Duels of the Planeswalkers Programming Talk
Flickering priority using Conjurer's Closet
Moderator: CCGHQ Admins
Flickering priority using Conjurer's Closet
by gorem2k » 20 Aug 2014, 16:13
I got a question for you guys,
I'm currently building an unrestricted combo deck with Conjurer's Closet. Now, what happen is when I have Meadowboon in play, if I choose to flicker it with the closet, it comes back and gives itself a +1/+1 counter. Here's Meadowboon code I have:
Is there a way I can apply this effect before it returns? I know there's a priority="?" but I don't really know how it works.
Thanks in advance.
Ok, I found an answer here
I'm currently building an unrestricted combo deck with Conjurer's Closet. Now, what happen is when I have Meadowboon in play, if I choose to flicker it with the closet, it comes back and gives itself a +1/+1 counter. Here's Meadowboon code I have:
- Code: Select all
<TRIGGERED_ABILITY>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[When Meadowboon leaves the battlefield, put a +1/+1 counter on each creature target player controls.]]></LOCALISED_TEXT>
<TRIGGER value="ZONECHANGE_BEGIN" simple_qualifier="self" to_zone="ZONE_ANY" from_zone="ZONE_BATTLEFIELD" />
<TARGET tag="CARD_QUERY_CHOOSE_A_PLAYER_TO_TARGET" definition="0" compartment="0" count="1" />
<TARGET_DEFINITION id="0">
local filter = ClearFilter()
filter:SetFilterType( FILTER_TYPE_PLAYERS )
</TARGET_DEFINITION>
<FILTER filter_id="0">
local target = EffectDC():Get_Targets(0):Get_PlayerPtr(0)
if target ~= nil then
local filter = ClearFilter()
filter:Add(FE_TYPE, OP_IS, CARD_TYPE_CREATURE )
filter:Add(FE_CONTROLLER, OP_IS, target )
end
</FILTER>
<RESOLUTION_TIME_ACTION filter_id="0">
if FilteredCard() ~= nil then
FilteredCard():AddCounters( MTG():PlusOnePlusOneCounters(), 1)
end
</RESOLUTION_TIME_ACTION>
<AI_SIMPLIFIED_TARGETING compartment="0" hint="HINT_ALLIED_ONLY" />
</TRIGGERED_ABILITY>
Is there a way I can apply this effect before it returns? I know there's a priority="?" but I don't really know how it works.
Thanks in advance.
Ok, I found an answer here
Re: Flickering priority using Conjurer's Closet
by sweetLu » 20 Aug 2014, 16:29
I think that is correct. The Conjurer's Closet blinking ability is all in a single ability. So when Meadowboon leaves play it's ability goes on the stack but doesn't get a chance to resolve until after it comes back into play. Priority shouldn't be passed during the middle of the Conjurer's Closet ability resolving.
Re: Flickering priority using Conjurer's Closet
by gorem2k » 20 Aug 2014, 16:40
CoolsweetLu wrote:I think that is correct. The Conjurer's Closet blinking ability is all in a single ability. So when Meadowboon leaves play it's ability goes on the stack but doesn't get a chance to resolve until after it comes back into play. Priority shouldn't be passed during the middle of the Conjurer's Closet ability resolving.
This will make my custom deck even more powerful.
3 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 8 guests