Commit 49c5ae96 authored by Huangnan's avatar Huangnan

fix

parent f9a16f0c
Pipeline #29798 failed with stages
in 13 minutes and 48 seconds
...@@ -19,7 +19,6 @@ local cm=_G["c"..m] ...@@ -19,7 +19,6 @@ local cm=_G["c"..m]
xpcall(function() require("expansions/script/c33201250") end,function() require("script/c33201250") end) xpcall(function() require("expansions/script/c33201250") end,function() require("script/c33201250") end)
local s,id,o=GetID() local s,id,o=GetID()
function cm.initial_effect(c) function cm.initial_effect(c)
VHisc_Dragonk.rmeq(c,m)
--spsummon --spsummon
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(m,3)) e1:SetDescription(aux.Stringid(m,3))
......
...@@ -120,7 +120,7 @@ function cm.splimit(e,c) ...@@ -120,7 +120,7 @@ function cm.splimit(e,c)
end end
function cm.thcon(e,tp,eg,ep,ev,re,r,rp) function cm.thcon(e,tp,eg,ep,ev,re,r,rp)
return ep==tp and Duel.IsExistingMatchingCard(cm.ffil,tp,LOCATION_FZONE,0,1,nil) return ep==tp and Duel.IsExistingMatchingCard(cm.filter,tp,LOCATION_FZONE,0,1,nil)
end end
function cm.filter(c,tp,rp) function cm.filter(c,tp,rp)
return c:IsPreviousLocation(LOCATION_MZONE) and c:GetPreviousControler()==tp and (c:IsReason(REASON_BATTLE) or (rp==1-tp and c:IsReason(REASON_EFFECT))) return c:IsPreviousLocation(LOCATION_MZONE) and c:GetPreviousControler()==tp and (c:IsReason(REASON_BATTLE) or (rp==1-tp and c:IsReason(REASON_EFFECT)))
...@@ -138,7 +138,7 @@ function cm.spop1(e,tp,eg,ep,ev,re,r,rp) ...@@ -138,7 +138,7 @@ function cm.spop1(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if c:IsRelateToEffect(e) and Duel.SpecialSummon(c,0,tp,tp,true,true,POS_FACEUP)~=0 then if c:IsRelateToEffect(e) and Duel.SpecialSummon(c,0,tp,tp,true,true,POS_FACEUP)~=0 then
c:CompleteProcedure() c:CompleteProcedure()
local g=Duel.GetMatchingGroup(Card.IsAbleToDeck,tp,LOCATION_ONFIELD+LOCATION_GRAVE,LOCATION_ONFIELD+LOCATION_GRAVE,c) local g=Duel.GetMatchingGroup(Card.IsAbleToDeck,tp,LOCATION_ONFIELD+LOCATION_GRAVE,0,c)
Duel.SendtoDeck(g,nil,2,REASON_EFFECT) Duel.SendtoDeck(g,nil,2,REASON_EFFECT)
end end
end end
\ No newline at end of file
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