Commit 97e9150c authored by mercury233's avatar mercury233

fix

parent bd0e60a1
Pipeline #8614 passed with stages
in 48 seconds
......@@ -92,7 +92,7 @@ function c101108021.spop(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.SelectMatchingCard(tp,c101108021.spfilter2,tp,LOCATION_DECK,0,1,1,nil,e,tp)
local tc=g:GetFirst()
if tc then
Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP)
Duel.SpecialSummonStep(tc,0,tp,tp,false,false,POS_FACEUP)
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_DISABLE)
......@@ -105,6 +105,7 @@ function c101108021.spop(e,tp,eg,ep,ev,re,r,rp)
e2:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e2:SetReset(RESET_EVENT+RESETS_STANDARD)
tc:RegisterEffect(e2)
Duel.SpecialSummonComplete()
end
else
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
......
......@@ -23,6 +23,7 @@ function c101108024.initial_effect(c)
e2:SetCode(EFFECT_ACTIVATE_COST)
e2:SetRange(LOCATION_MZONE)
e2:SetTargetRange(0,1)
e2:SetCondition(c101108024.costcon)
e2:SetCost(c101108024.costchk)
e2:SetOperation(c101108024.costop)
c:RegisterEffect(e2)
......@@ -33,6 +34,7 @@ function c101108024.initial_effect(c)
e3:SetCode(0x10000000+101108024)
e3:SetRange(LOCATION_MZONE)
e3:SetTargetRange(0,1)
e3:SetCondition(c101108024.costcon)
c:RegisterEffect(e3)
--remove
local e4=Effect.CreateEffect(c)
......@@ -63,6 +65,13 @@ function c101108024.thop(e,tp,eg,ep,ev,re,r,rp)
Duel.ConfirmCards(1-tp,g)
end
end
function c101108024.costcfilter(c)
return c:IsFaceup() and c:IsSetCard(0x137) and c:IsLevelAbove(7)
end
function c101108024.costcon(e)
local tp=e:GetHandlerPlayer()
return Duel.IsExistingMatchingCard(c101108024.costcfilter,tp,LOCATION_MZONE,0,1,nil)
end
function c101108024.costchk(e,te_or_c,tp)
local ct=Duel.GetFlagEffect(tp,101108024)
return Duel.CheckLPCost(tp,ct*400)
......
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