Commit 93477037 authored by Tachibana's avatar Tachibana

ybb

parent 11440db3
No preview for this file type
......@@ -8,6 +8,7 @@ function cm.initial_effect(c)
e1:SetOperation(cm.op1)
c:RegisterEffect(e1)
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(m,1))
e2:SetCategory(CATEGORY_TOGRAVE)
e2:SetType(EFFECT_TYPE_QUICK_O)
e2:SetCode(EVENT_FREE_CHAIN)
......
......@@ -43,10 +43,11 @@ function cm.op2(e,tp,eg,ep,ev,re,r,rp)
if g:GetCount()<=0 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_CONTROL)
local tc=g:Select(1-tp,1,1,nil):GetFirst()
if tc and Duel.GetControl(tc,tp)~=0 and g:RemoveCard(tc) and #g>0 and Duel.SelectYesNo(tp,aux.Stringid(m,0)) then
Duel.BreakEffect()
g:RemoveCard(tc)
if tc and Duel.GetControl(tc,tp)~=0 and g:GetCount()>0 and Duel.SelectYesNo(tp,aux.Stringid(m,0)) then
local sc=g:Select(tp,1,1,nil):GetFirst()
if sc and tc then
Duel.BreakEffect()
Duel.SwapControl(sc,tc)
end
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