Commit d83060cb authored by 八宫一月's avatar 八宫一月 Committed by GitHub

Fix 天極輝艦-熊斗竜巧 天斗輝巧極 (#2430)

* Update c33250142.lua

* Update c89771220.lua
parent 479ba3b1
...@@ -6,6 +6,7 @@ function c33250142.initial_effect(c) ...@@ -6,6 +6,7 @@ function c33250142.initial_effect(c)
e0:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE) e0:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e0:SetType(EFFECT_TYPE_SINGLE) e0:SetType(EFFECT_TYPE_SINGLE)
e0:SetCode(EFFECT_SPSUMMON_CONDITION) e0:SetCode(EFFECT_SPSUMMON_CONDITION)
e0:SetValue(c33250142.splimit)
c:RegisterEffect(e0) c:RegisterEffect(e0)
--to hand (deck) --to hand (deck)
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
...@@ -32,6 +33,9 @@ function c33250142.initial_effect(c) ...@@ -32,6 +33,9 @@ function c33250142.initial_effect(c)
e2:SetOperation(c33250142.thop2) e2:SetOperation(c33250142.thop2)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c33250142.splimit(e,se,sp,st)
return se:GetHandler():IsCode(89771220)
end
function c33250142.cfilter1(c,tp) function c33250142.cfilter1(c,tp)
return c:IsFaceup() and c:IsType(TYPE_EFFECT) and c:IsControler(tp) return c:IsFaceup() and c:IsType(TYPE_EFFECT) and c:IsControler(tp)
end end
......
...@@ -34,7 +34,7 @@ function c89771220.fselect(g,e,tp) ...@@ -34,7 +34,7 @@ function c89771220.fselect(g,e,tp)
and Duel.IsExistingMatchingCard(c89771220.spfilter,tp,LOCATION_EXTRA,0,1,nil,e,tp,g) and Duel.IsExistingMatchingCard(c89771220.spfilter,tp,LOCATION_EXTRA,0,1,nil,e,tp,g)
end end
function c89771220.spfilter(c,e,tp,g) function c89771220.spfilter(c,e,tp,g)
return c:IsCode(33250142) and c:IsCanBeSpecialSummoned(e,0,tp,true,false) return c:IsCode(33250142) and c:IsCanBeSpecialSummoned(e,0,tp,false,true)
and Duel.GetLocationCountFromEx(tp,tp,g,c)>0 and Duel.GetLocationCountFromEx(tp,tp,g,c)>0
end end
function c89771220.target(e,tp,eg,ep,ev,re,r,rp,chk) function c89771220.target(e,tp,eg,ep,ev,re,r,rp,chk)
...@@ -55,7 +55,7 @@ function c89771220.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -55,7 +55,7 @@ function c89771220.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local sg=Duel.SelectMatchingCard(tp,c89771220.spfilter,tp,LOCATION_EXTRA,0,1,1,nil,e,tp,nil) local sg=Duel.SelectMatchingCard(tp,c89771220.spfilter,tp,LOCATION_EXTRA,0,1,1,nil,e,tp,nil)
if #sg>0 then if #sg>0 then
Duel.SpecialSummon(sg,0,tp,tp,true,false,POS_FACEUP) Duel.SpecialSummon(sg,0,tp,tp,false,true,POS_FACEUP)
sg:GetFirst():CompleteProcedure() sg:GetFirst():CompleteProcedure()
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