Commit 5ab742fb authored by Tachibana's avatar Tachibana

ndyd

parent f7c06daa
Pipeline #5095 passed with stages
in 18 minutes and 36 seconds
......@@ -28,7 +28,10 @@ end
function cm.cfilter(c,e)
return (c:IsLevelAbove(1) or c:IsRankAbove(1)) and c:IsFaceup() and not c:IsLevel(e:GetHandler():GetLevel())
end
function cm.lvop(e,tp)
function cm.scfilter(c)
return c:IsSynchroSummonable(nil)
end
function cm.lvop(e,tp,eg,ep,ev,re,r,rp)
local c=aux.ExceptThisCard(e)
local tc=rscf.GetTargetCard(Card.IsFaceup)
if not c or not tc then return end
......@@ -41,8 +44,9 @@ function cm.lvop(e,tp)
e1:SetValue(lv)
e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_DISABLE)
e:GetHandler():RegisterEffect(e1)
local g=Duel.GetMatchingGroup(Card.IsSynchroSummonable,tp,LOCATION_EXTRA,0,nil,nil)
if #g>0 and Duel.SelectYesNo(tp,aux.Stringid(m,2)) then
local g=Duel.GetMatchingGroup(cm.scfilter,tp,LOCATION_EXTRA,0,nil)
if g:GetCount()>0 and Duel.SelectYesNo(tp,aux.Stringid(m,2)) then
Duel.BreakEffect()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local sg=g:Select(tp,1,1,nil)
Duel.SynchroSummon(tp,sg:GetFirst(),nil)
......
......@@ -137,6 +137,7 @@ function c12030020.spop(e,tp,eg,ep,ev,re,r,rp)
end
local g=Duel.GetMatchingGroup(Card.IsSynchroSummonable,tp,LOCATION_EXTRA,0,nil,nil)
if #g>0 and Duel.SelectYesNo(tp,aux.Stringid(12030020,4)) then
Duel.BreakEffect()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local sg=g:Select(tp,1,1,nil)
Duel.SynchroSummon(tp,sg:GetFirst(),nil)
......
......@@ -98,9 +98,10 @@ function cm.desop(e,tp,eg,ep,ev,re,r,rp)
local hg=Duel.GetMatchingGroup(Card.IsSynchroSummonable,tp,LOCATION_EXTRA,0,nil,nil)
if hg:GetCount()>0 then
if Duel.SelectYesNo(tp,aux.Stringid(m,2)) then
Duel.BreakEffect()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local sg=hg:Select(tp,1,1,nil)
Duel.SynchroSummon(tp,sg:GetFirst(),nil)
end
end
end
\ No newline at end of file
end
......@@ -85,6 +85,7 @@ function cm.lvop(e,tp,eg,ep,ev,re,r,rp)
local hg=Duel.GetMatchingGroup(Card.IsSynchroSummonable,tp,LOCATION_EXTRA,0,nil,nil)
if hg:GetCount()>0 then
if Duel.SelectYesNo(tp,aux.Stringid(m,2)) then
Duel.BreakEffect()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local sg=hg:Select(tp,1,1,nil)
Duel.SynchroSummon(tp,sg:GetFirst(),nil)
......
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