Commit 45a8c42e authored by Tachibana's avatar Tachibana

ybb

parent d327ecf2
Pipeline #10858 passed with stages
in 31 minutes and 33 seconds
......@@ -75,6 +75,7 @@ function c12051021.activate2(e,tp,eg,ep,ev,re,r,rp)
local tc=g1:GetFirst()
while tc do
Duel.SpecialSummonStep(tc,0,tp,tp,false,false,POS_FACEUP)
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_DISABLE)
e1:SetReset(RESET_EVENT+RESETS_STANDARD)
......
......@@ -25,7 +25,7 @@ function cm.initial_effect(c)
e4:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON)
e4:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e4:SetTargetRange(0,1)
e4:SetValue(cm.val)
e4:SetTarget(cm.val)
c:RegisterEffect(e4)
local e5=e4:Clone()
e5:SetCode(EFFECT_CANNOT_SUMMON)
......
......@@ -43,11 +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>1 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