Commit 9d4d6c43 authored by nanahira's avatar nanahira

bp

parent 0971845c
local program={
{
player=0,
count=1,
},
{
player=1,
count=2,
},
{
player=0,
count=2,
},
{
player=1,
count=2,
},
{
player=0,
count=1,
},
}
local function init()
for task in ipairs(program) do
Duel.Hint(HINT_SELECTMSG,task.player,HINTMSG_ATOHAND)
local g=Duel.SelectMatchingCard(task.player,Card.IsAbleToHand,task.player,LOCATION_DECK,0,task.count,task.count,nil)
Duel.SendtoHand(g,task.player,REASON_RULE)
Duel.ConfirmCards(1-task.player,g)
end
Duel.ShuffleHand(0)
Duel.ShuffleHand(1)
end
function Auxiliary.PreloadUds()
--adjust
local e1=Effect.GlobalEffect()
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e1:SetProperty(EFFECT_FLAG_IGNORE_IMMUNE)
e1:SetCode(EVENT_ADJUST)
e1:SetOperation(function(e)
init()
e:Reset()
end)
Duel.RegisterEffect(e1,0)
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment