Commit 076968bf authored by 聖園ミカ's avatar 聖園ミカ 🐟

str

parent 315fee10
...@@ -25,12 +25,12 @@ function cm.initial_effect(c) ...@@ -25,12 +25,12 @@ function cm.initial_effect(c)
e2:SetValue(cm.efilter) e2:SetValue(cm.efilter)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function cm.spfilter(c) function cm.spfilter(c,tp)
return c:IsAbleToRemove() and c:IsRace(RACE_SEASERPENT) and c:IsLevelAbove(0) and Duel.GetLocationCountFromEx(tp,tp,c,TYPE_SYNCHRO)>0 return c:IsAbleToRemove() and c:IsRace(RACE_SEASERPENT) and c:IsLevelAbove(0) and Duel.GetLocationCountFromEx(tp,tp,c,TYPE_SYNCHRO)>0
end end
function cm.thfilter(c,e,tp) function cm.thfilter(c,e,tp)
local g=Duel.GetMatchingGroup(cm.spfilter,tp,LOCATION_HAND+LOCATION_GRAVE,0,nil) local g=Duel.GetMatchingGroup(cm.spfilter,tp,LOCATION_HAND+LOCATION_GRAVE,0,nil,tp)
return g:CheckWithSumEqual(Card.GetLevel,6,2,c:GetLevel()) and c:IsType(TYPE_SYNCHRO) and c:IsRace(RACE_SEASERPENT) and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_SYNCHRO,tp,false,false) return g:CheckWithSumEqual(Card.GetLevel,c:GetLevel(),1,#g) and c:IsType(TYPE_SYNCHRO) and c:IsRace(RACE_SEASERPENT) and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_SYNCHRO,tp,false,false)
end end
function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
...@@ -46,7 +46,7 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -46,7 +46,7 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
local lv=g:GetFirst():GetLevel() local lv=g:GetFirst():GetLevel()
local g1=Duel.GetMatchingGroup(cm.spfilter,tp,LOCATION_HAND+LOCATION_GRAVE,0,nil) local g1=Duel.GetMatchingGroup(cm.spfilter,tp,LOCATION_HAND+LOCATION_GRAVE,0,nil)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local sg=g1:SelectWithSumEqual(tp,Card.GetLevel,lv,2,99) local sg=g1:SelectWithSumEqual(tp,Card.GetLevel,lv,1,99)
Duel.Remove(sg,POS_FACEUP,REASON_EFFECT) Duel.Remove(sg,POS_FACEUP,REASON_EFFECT)
Duel.SpecialSummon(tc,SUMMON_TYPE_SYNCHRO,tp,tp,false,false,POS_FACEUP) Duel.SpecialSummon(tc,SUMMON_TYPE_SYNCHRO,tp,tp,false,false,POS_FACEUP)
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