Commit aba3aa60 authored by wind2009's avatar wind2009

Merge branch 'patch-1' into 'master'

Update c100227001.lua

See merge request mycard/pre-release-database-cdb!118
parents 6c6d5966 62bd2923
......@@ -30,7 +30,7 @@ function s.dfilter(c,g,e,tp)
return c:IsSetCard(0x35) and c:IsType(TYPE_MONSTER) and c:IsDiscardable(REASON_EFFECT+REASON_DISCARD)
end
function s.fselect(g,e,tp)
local lv=g:GetSum(Card.GetLevel)
local lv=g:GetSum(Card.GetOriginalLevel)
return g:IsContains(e:GetHandler()) and Duel.IsExistingMatchingCard(s.synfilter,tp,LOCATION_EXTRA,0,1,nil,e,tp,lv)
end
function s.synfilter(c,e,tp,lv)
......@@ -50,7 +50,7 @@ function s.synop(e,tp,eg,ep,ev,re,r,rp)
Duel.SetSelectedCard(e:GetHandler())
local sg=g:SelectSubGroup(tp,s.fselect,false,2,99,e,tp)
if sg and sg:GetCount()>=2 then
local lv=sg:GetSum(Card.GetLevel)
local lv=sg:GetSum(Card.GetOriginalLevel)
Duel.SendtoGrave(sg,REASON_EFFECT+REASON_DISCARD)
local sc=Duel.SelectMatchingCard(tp,s.synfilter,tp,LOCATION_EXTRA,0,1,1,nil,e,tp,lv):GetFirst()
if not sc then return 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