Commit 5ab742fb authored by Tachibana's avatar Tachibana

ndyd

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