I answered in your
original topic.
EDIT:
Master Necro wrote:"destroy target creature with power 2 or less"
This should be quite easy, start from
Murder and add the power restriction:
- code | Open
- Code: Select all
<TARGET tag="CARD_QUERY_CHOOSE_CREATURE_TO_DESTROY" definition="0" compartment="0" count="1" />
<TARGET_DEFINITION id="0">
local filter = ClearFilter()
filter:Add( FE_TYPE, OP_IS, CARD_TYPE_CREATURE )
filter:Add( FE_POWER, OP_LESS_THAN_OR_EQUAL_TO, 2 )
</TARGET_DEFINITION>
<RESOLUTION_TIME_ACTION>
local target = EffectDC():Get_Targets(0):Get_CardPtr(0)
if target ~= nil then
target:Destroy()
end
</RESOLUTION_TIME_ACTION>
<AI_SIMPLIFIED_TARGETING compartment="0" hint="HINT_ENEMY_ONLY" />
Master Necro wrote:"look at the top three cards of target player's library, then put one back and the rest into that player's graveyard."
This should be quite easy as well, it's almost the same as
Glimpse the Future, it just needs to target a player and leave the chosen card where it is:
- code | Open
- Code: Select all
<TARGET tag="CARD_QUERY_CHOOSE_PLAYER_TO_VESTIGE_ROT" definition="0" compartment="0" count="1" />
<TARGET_DEFINITION id="0">
local filter = ClearFilter()
filter:SetFilterType(FILTER_TYPE_PLAYERS)
</TARGET_DEFINITION>
<RESOLUTION_TIME_ACTION>
local target_player = EffectDC():Get_Targets(0):Get_PlayerPtr(0)
if target_player ~= nil then
local answerDC = EffectDC():Make_Targets(1)
local queryDC = EffectDC():Make_Chest(2)
for i=0,2 do
local card = target_player:Library_GetNth(i)
if card ~= nil then
queryDC:Set_CardPtr(i, card)
else
break
end
end
if answerDC ~= nil and queryDC ~= nil then
EffectController():ChooseItemFromDC("CARD_QUERY_CHOOSE_CARD_TO_PUT_ONTO_LIBRARY", queryDC, answerDC)
end
end
</RESOLUTION_TIME_ACTION>
<RESOLUTION_TIME_ACTION>
local target_player = EffectDC():Get_Targets(0):Get_PlayerPtr(0)
if target_player ~= nil then
local chosen_card = EffectDC():Get_Targets(1):Get_CardPtr(0)
if chosen_card ~= nil then
local queryDC = EffectDC():Get_Chest(2)
local num_cards = queryDC:Count()
for i=0,num_cards-1 do
local card = queryDC:Get_CardPtr(i)
if card ~= nil and card ~= chosen_card then
card:PutInGraveyard()
end
end
end
end
</RESOLUTION_TIME_ACTION>
<AI_SIMPLIFIED_TARGETING compartment="0" hint="HINT_ENEMY" />
Master Necro wrote:"Your opponents can't cast nonland cards with the same name as a card exiled with
Circu, Dimir Lobotomist."
This depends on how Circu's exiling is coded, you can't code it separately.