Commit d214e684 authored by GuGu's avatar GuGu

Update c86379540.lua

parent 788d66bf
Pipeline #33487 passed with stage
in 7 seconds
...@@ -12,6 +12,7 @@ function c86379540.initial_effect(c) ...@@ -12,6 +12,7 @@ function c86379540.initial_effect(c)
e2:SetRange(LOCATION_EXTRA) e2:SetRange(LOCATION_EXTRA)
e2:SetValue(SUMMON_TYPE_SYNCHRO) e2:SetValue(SUMMON_TYPE_SYNCHRO)
e2:SetCondition(c86379540.sprcon2) e2:SetCondition(c86379540.sprcon2)
e2:SetTarget(c86379540.sprtg2)
e2:SetOperation(c86379540.sprop2) e2:SetOperation(c86379540.sprop2)
c:RegisterEffect(e2) c:RegisterEffect(e2)
--dice --dice
...@@ -38,7 +39,7 @@ function c86379540.initial_effect(c) ...@@ -38,7 +39,7 @@ function c86379540.initial_effect(c)
end end
-- --
function c86379540.sprfilter2(c,tp,sync) function c86379540.sprfilter2(c,tp,sync)
return c:IsSetCard(0x3256) and c:IsCanBeSynchroMaterial(sync) and c:IsReleasable() and c:IsLevel(4) and not c:IsCode(86379540) return c:IsSetCard(0x3256) and c:IsCanBeSynchroMaterial(sync) and c:IsReleasable() and c:IsLevel(4) and c:IsFaceup() and not c:IsCode(86379540)
and Duel.GetLocationCountFromEx(tp,tp,c,sync)>0 and Duel.GetLocationCountFromEx(tp,tp,c,sync)>0
end end
function c86379540.sprcon2(e,c,smat,mg) function c86379540.sprcon2(e,c,smat,mg)
...@@ -46,11 +47,21 @@ function c86379540.sprcon2(e,c,smat,mg) ...@@ -46,11 +47,21 @@ function c86379540.sprcon2(e,c,smat,mg)
local tp=c:GetControler() local tp=c:GetControler()
return Duel.IsExistingMatchingCard(c86379540.sprfilter2,tp,LOCATION_MZONE,0,1,nil,tp,c) and not smat and not mg return Duel.IsExistingMatchingCard(c86379540.sprfilter2,tp,LOCATION_MZONE,0,1,nil,tp,c) and not smat and not mg
end end
function c86379540.sprop2(e,tp,eg,ep,ev,re,r,rp,c) function c86379540.sprtg2(e,tp,eg,ep,ev,re,r,rp,chk,c)
local rg=Duel.GetMatchingGroup(c86379540.sprfilter2,tp,LOCATION_MZONE,0,nil,tp,c)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
local g=Duel.SelectMatchingCard(tp,c86379540.sprfilter2,tp,LOCATION_MZONE,0,1,1,nil,tp,c) local sg=rg:SelectSubGroup(tp,aux.TRUE,true,1,1,tp,c)
c:SetMaterial(g) if sg then
sg:KeepAlive()
e:SetLabelObject(sg)
return true
else return false end
end
function c86379540.sprop2(e,tp,eg,ep,ev,re,r,rp,c)
local g=e:GetLabelObject()
Duel.Release(g,REASON_MATERIAL+REASON_SYNCHRO) Duel.Release(g,REASON_MATERIAL+REASON_SYNCHRO)
c:SetMaterial(g)
g:DeleteGroup()
end end
-- --
function c86379540.confilter(c,sc) function c86379540.confilter(c,sc)
......
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