Commit c48a98ca authored by DailyShana's avatar DailyShana

fix

parent 59e6c108
...@@ -56,8 +56,7 @@ function c33541430.drop(e,tp,eg,ep,ev,re,r,rp) ...@@ -56,8 +56,7 @@ function c33541430.drop(e,tp,eg,ep,ev,re,r,rp)
Duel.ConfirmCards(1-tp,tc) Duel.ConfirmCards(1-tp,tc)
Duel.BreakEffect() Duel.BreakEffect()
if tc:IsType(TYPE_MONSTER) and tc:IsSetCard(0xe6) then if tc:IsType(TYPE_MONSTER) and tc:IsSetCard(0xe6) then
if tc:IsCanBeSpecialSummoned(e,0,tp,true,false) if Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.SelectYesNo(tp,aux.Stringid(33541430,1)) and Duel.SelectYesNo(tp,aux.Stringid(33541430,1))
and Duel.SpecialSummonStep(tc,0,tp,tp,true,false,POS_FACEUP) then and Duel.SpecialSummonStep(tc,0,tp,tp,true,false,POS_FACEUP) then
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
......
...@@ -45,7 +45,7 @@ function c34496660.thcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -45,7 +45,7 @@ function c34496660.thcon(e,tp,eg,ep,ev,re,r,rp)
and not Duel.IsExistingMatchingCard(Card.IsType,tp,LOCATION_GRAVE,0,1,nil,TYPE_SPELL+TYPE_TRAP) and not Duel.IsExistingMatchingCard(Card.IsType,tp,LOCATION_GRAVE,0,1,nil,TYPE_SPELL+TYPE_TRAP)
end end
function c34496660.thfilter(c) function c34496660.thfilter(c)
return (c:IsSetCard(0x109a) or c:IsCode(3064425,4786063,14624296,27756115,31181711,35800511,40028305,77679716,90361010,95500396)) and c:IsAbleToHand() return c:IsSetCard(0x109a) and c:IsAbleToHand()
end end
function c34496660.thtg(e,tp,eg,ep,ev,re,r,rp,chk) function c34496660.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c34496660.thfilter,tp,LOCATION_DECK,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c34496660.thfilter,tp,LOCATION_DECK,0,1,nil) end
...@@ -53,8 +53,7 @@ function c34496660.thtg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -53,8 +53,7 @@ function c34496660.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function c34496660.thop(e,tp,eg,ep,ev,re,r,rp) function c34496660.thop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) or c:IsPosition(POS_FACEUP_ATTACK) then return end if not c:IsRelateToEffect(e) or Duel.ChangePosition(c,POS_FACEUP_ATTACK)==0 then return end
Duel.ChangePosition(c,POS_FACEUP_ATTACK)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local g=Duel.SelectMatchingCard(tp,c34496660.thfilter,tp,LOCATION_DECK,0,1,1,nil) local g=Duel.SelectMatchingCard(tp,c34496660.thfilter,tp,LOCATION_DECK,0,1,1,nil)
if g:GetCount()>0 then if g:GetCount()>0 then
......
...@@ -52,7 +52,7 @@ function c35618217.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -52,7 +52,7 @@ function c35618217.operation(e,tp,eg,ep,ev,re,r,rp)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c35618217.thcon(e,tp,eg,ep,ev,re,r,rp) function c35618217.thcon(e,tp,eg,ep,ev,re,r,rp)
return bit.band(r,REASON_RETURN)==0 and bit.band(r,REASON_EFFECT)~=0 return bit.band(r,REASON_EFFECT)~=0
end end
function c35618217.thfilter(c) function c35618217.thfilter(c)
return c:IsCode(24094653) and c:IsAbleToHand() return c:IsCode(24094653) and c:IsAbleToHand()
...@@ -66,7 +66,7 @@ function c35618217.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -66,7 +66,7 @@ function c35618217.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end end
function c35618217.thop(e,tp,eg,ep,ev,re,r,rp) function c35618217.thop(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if tc and tc:IsRelateToEffect(e) then if tc:IsRelateToEffect(e) then
Duel.SendtoHand(tc,nil,REASON_EFFECT) Duel.SendtoHand(tc,nil,REASON_EFFECT)
end end
end end
......
...@@ -11,7 +11,7 @@ function c36730805.initial_effect(c) ...@@ -11,7 +11,7 @@ function c36730805.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c36730805.condition(e,tp,eg,ep,ev,re,r,rp) function c36730805.condition(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(nil,tp,LOCATION_MZONE,0,nil) local g=Duel.GetFieldGroup(tp,LOCATION_MZONE,0)
if g:GetCount()~=1 then return false end if g:GetCount()~=1 then return false end
local c=g:GetFirst() local c=g:GetFirst()
return c:IsFaceup() and c:IsType(TYPE_TUNER) return c:IsFaceup() and c:IsType(TYPE_TUNER)
......
...@@ -72,17 +72,17 @@ function c61884774.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -72,17 +72,17 @@ function c61884774.activate(e,tp,eg,ep,ev,re,r,rp)
tc2:RegisterFlagEffect(61884774,RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_END+RESET_OPPO_TURN,0,1,fid) tc2:RegisterFlagEffect(61884774,RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_END+RESET_OPPO_TURN,0,1,fid)
local sg=Group.FromCards(tc1,tc2) local sg=Group.FromCards(tc1,tc2)
sg:KeepAlive() sg:KeepAlive()
local de1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
de1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
de1:SetProperty(EFFECT_FLAG_IGNORE_IMMUNE) e1:SetProperty(EFFECT_FLAG_IGNORE_IMMUNE)
de1:SetCode(EVENT_PHASE+PHASE_END) e1:SetCode(EVENT_PHASE+PHASE_END)
de1:SetCountLimit(1) e1:SetCountLimit(1)
de1:SetLabel(fid) e1:SetLabel(fid)
de1:SetLabelObject(sg) e1:SetLabelObject(sg)
de1:SetCondition(c61884774.descon) e1:SetCondition(c61884774.descon)
de1:SetOperation(c61884774.desop) e1:SetOperation(c61884774.desop)
de1:SetReset(RESET_PHASE+PHASE_END+RESET_OPPO_TURN) e1:SetReset(RESET_PHASE+PHASE_END+RESET_OPPO_TURN)
Duel.RegisterEffect(de1,tp) Duel.RegisterEffect(e1,tp)
end end
end end
function c61884774.splimit(e,c) function c61884774.splimit(e,c)
......
...@@ -77,5 +77,5 @@ function c7279373.ftarget(e,c) ...@@ -77,5 +77,5 @@ function c7279373.ftarget(e,c)
return e:GetLabel()~=c:GetFieldID() return e:GetLabel()~=c:GetFieldID()
end end
function c7279373.indcon(e) function c7279373.indcon(e)
return Duel.GetTurnPlayer()==e:GetHandler():GetControler() return Duel.GetTurnPlayer()==e:GetHandlerPlayer()
end end
...@@ -34,7 +34,7 @@ function c9336190.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -34,7 +34,7 @@ function c9336190.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end end
function c9336190.activate(e,tp,eg,ep,ev,re,r,rp) function c9336190.activate(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if tc and tc:IsRelateToEffect(e) then if tc:IsRelateToEffect(e) then
Duel.SendtoHand(tc,nil,REASON_EFFECT) Duel.SendtoHand(tc,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,tc) Duel.ConfirmCards(1-tp,tc)
end end
...@@ -55,7 +55,7 @@ function c9336190.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -55,7 +55,7 @@ function c9336190.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectTarget(tp,c9336190.spfilter,tp,LOCATION_GRAVE,0,1,1,nil,e,tp) local g=Duel.SelectTarget(tp,c9336190.spfilter,tp,LOCATION_GRAVE,0,1,1,nil,e,tp)
g:AddCard(e:GetHandler()) g:AddCard(e:GetHandler())
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,g,1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,g,2,0,0)
end end
function c9336190.spop(e,tp,eg,ep,ev,re,r,rp) function c9336190.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -80,7 +80,6 @@ function c96157835.spop2(e,tp,eg,ep,ev,re,r,rp) ...@@ -80,7 +80,6 @@ function c96157835.spop2(e,tp,eg,ep,ev,re,r,rp)
Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP) Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP)
local c=e:GetHandler() local c=e:GetHandler()
if c:IsRelateToEffect(e) then if c:IsRelateToEffect(e) then
c:CancelToGrave()
Duel.Overlay(tc,Group.FromCards(c)) Duel.Overlay(tc,Group.FromCards(c))
end end
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