Commit fd7fbaed authored by DailyShana's avatar DailyShana

fix

parent aa74ea95
...@@ -22,6 +22,12 @@ function c25629622.initial_effect(c) ...@@ -22,6 +22,12 @@ function c25629622.initial_effect(c)
local e3=e2:Clone() local e3=e2:Clone()
e3:SetCode(EVENT_SPSUMMON_SUCCESS) e3:SetCode(EVENT_SPSUMMON_SUCCESS)
c:RegisterEffect(e3) c:RegisterEffect(e3)
local e0=Effect.CreateEffect(c)
e0:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e0:SetRange(LOCATION_MZONE)
e0:SetCode(EVENT_CHAIN_END)
e0:SetOperation(c25629622.limop2)
c:RegisterEffect(e0)
--set --set
local e4=Effect.CreateEffect(c) local e4=Effect.CreateEffect(c)
e4:SetType(EFFECT_TYPE_IGNITION) e4:SetType(EFFECT_TYPE_IGNITION)
...@@ -53,11 +59,21 @@ function c25629622.thop(e,tp,eg,ep,ev,re,r,rp) ...@@ -53,11 +59,21 @@ function c25629622.thop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c25629622.limop(e,tp,eg,ep,ev,re,r,rp) function c25629622.limop(e,tp,eg,ep,ev,re,r,rp)
Duel.SetChainLimitTillChainEnd(c25629622.chlimit) if Duel.GetCurrentChain()==0 then
Duel.SetChainLimitTillChainEnd(c25629622.chlimit)
elseif Duel.GetCurrentChain()==1 then
e:GetHandler():RegisterFlagEffect(25629622,RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_END,0,1)
end
end end
function c25629622.chlimit(e,rp,tp) function c25629622.chlimit(e,rp,tp)
return tp==rp or e:IsActiveType(TYPE_MONSTER) return tp==rp or e:IsActiveType(TYPE_MONSTER)
end end
function c25629622.limop2(e,tp,eg,ep,ev,re,r,rp)
if e:GetHandler():GetFlagEffect(25629622)~=0 then
Duel.SetChainLimitTillChainEnd(c25629622.chlimit)
end
e:GetHandler():ResetFlagEffect(25629622)
end
function c25629622.setfilter(c) function c25629622.setfilter(c)
return c:IsSetCard(0x20ec) and c:IsType(TYPE_SPELL) and c:IsSSetable() return c:IsSetCard(0x20ec) and c:IsType(TYPE_SPELL) and c:IsSSetable()
end end
......
...@@ -18,7 +18,7 @@ function c43641473.ecfilter(c) ...@@ -18,7 +18,7 @@ function c43641473.ecfilter(c)
return c:IsType(TYPE_EQUIP) and c:GetEquipTarget()~=nil and Duel.IsExistingTarget(c43641473.tcfilter,0,LOCATION_MZONE,LOCATION_MZONE,1,c:GetEquipTarget(),c) return c:IsType(TYPE_EQUIP) and c:GetEquipTarget()~=nil and Duel.IsExistingTarget(c43641473.tcfilter,0,LOCATION_MZONE,LOCATION_MZONE,1,c:GetEquipTarget(),c)
end end
function c43641473.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c43641473.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_SZONE) and c43641473.ecfilter(chkc) end if chkc then return false end
if chk==0 then return Duel.IsExistingTarget(c43641473.ecfilter,tp,LOCATION_SZONE,LOCATION_SZONE,1,nil) end if chk==0 then return Duel.IsExistingTarget(c43641473.ecfilter,tp,LOCATION_SZONE,LOCATION_SZONE,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(43641473,0)) Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(43641473,0))
local g=Duel.SelectTarget(tp,c43641473.ecfilter,tp,LOCATION_SZONE,LOCATION_SZONE,1,1,nil) local g=Duel.SelectTarget(tp,c43641473.ecfilter,tp,LOCATION_SZONE,LOCATION_SZONE,1,1,nil)
......
...@@ -10,7 +10,6 @@ function c48680970.initial_effect(c) ...@@ -10,7 +10,6 @@ function c48680970.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
--instant --instant
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_TOHAND+CATEGORY_SEARCH)
e2:SetType(EFFECT_TYPE_QUICK_O) e2:SetType(EFFECT_TYPE_QUICK_O)
e2:SetRange(LOCATION_SZONE) e2:SetRange(LOCATION_SZONE)
e2:SetCode(EVENT_FREE_CHAIN) e2:SetCode(EVENT_FREE_CHAIN)
...@@ -108,8 +107,10 @@ function c48680970.target2(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -108,8 +107,10 @@ function c48680970.target2(e,tp,eg,ep,ev,re,r,rp,chk)
end end
e:SetLabel(op) e:SetLabel(op)
if op==0 then if op==0 then
e:SetCategory(CATEGORY_SPECIAL_SUMMON)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND+LOCATION_GRAVE) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND+LOCATION_GRAVE)
else else
e:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK) Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
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