Commit be616683 authored by POLYMER's avatar POLYMER

fix

parent 2fd0c019
......@@ -45,7 +45,8 @@ if not cm.lblsz then
single=1
end
end
if Duel.IsExistingMatchingCard(Card.IsCode,tp,LOCATION_DECK,0,1,nil,m) and single==1 and Duel.GetFlagEffect(tp,m)==0 and Duel.SelectYesNo(tp,aux.Stringid(m,0)) then
if Duel.IsExistingMatchingCard(Card.IsCode,tp,LOCATION_DECK,0,1,nil,m) and single==1 and Duel.GetFlagEffect(tp,m)==0
and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.SelectYesNo(tp,aux.Stringid(m,0)) then
Duel.RegisterFlagEffect(tp,m,RESET_PHASE+PHASE_END,0,1)
local tg=Duel.SelectMatchingCard(tp,Card.IsCode,tp,LOCATION_DECK,0,1,1,nil,m)
if Duel.SpecialSummon(tg,0,tp,tp,false,false,POS_FACEUP)~=0 then
......
......@@ -59,8 +59,9 @@ function s.initial_effect(c)
local _SSet=Duel.SSet
function Duel.SSet(player,targets,tplayer,bool)
if not tplayer then tplayer=player end
if not bool then bool=true end
local lost=false
if bool and bool==true then
if bool==true then
if aux.GetValueType(targets)=="Card" then
local tc=targets
if tc:GetOriginalCode()==id and tc:GetOwner()==tplayer then
......
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