Commit 3fcbdea1 authored by Tachibana's avatar Tachibana

eme

parent f3402253
Pipeline #6422 passed with stages
in 31 minutes and 2 seconds
......@@ -75,7 +75,7 @@ function c85402020.cost(e,tp,eg,ep,ev,re,r,rp,chk)
return true
end
function c85402020.filter1(c,e,tp)
return c:IsType(TYPE_MONSTER) and Duel.GetMZoneCount(tp,c)>0 and c:IsSetCard(0xe45)
return c:IsType(TYPE_MONSTER) and c:IsSetCard(0xe45)
and Duel.IsExistingMatchingCard(c85402020.filter2,tp,LOCATION_DECK,0,1,nil,e,tp,c:GetCode())
end
function c85402020.filter2(c,e,tp,tcode)
......@@ -85,14 +85,14 @@ function c85402020.target1(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then
if e:GetLabel()~=1 then return false end
e:SetLabel(0)
return Duel.CheckReleaseGroup(tp,c85402020.filter1,1,nil,e,tp)
return Duel.IsExistingMatchingCard(c85402020.filter1,tp,LOCATION_ONFIELD,0,1,nil,e,tp)
end
local rg=Duel.SelectReleaseGroup(tp,c85402020.filter1,1,1,nil,e,tp)
local g=Duel.GetMatchingGroup(c85402020.filter1,tp,LOCATION_ONFIELD,0,nil,e,tp)
local rg=g:Select(tp,1,1,nil)
e:SetLabel(rg:GetFirst():GetCode())
Duel.SetOperationInfo(0,CATEGORY_SEARCH,nil,1,tp,LOCATION_DECK)
end
function c85402020.activate(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLocationCount(tp,LOCATION_SZONE)<=0 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local tc=Duel.SelectMatchingCard(tp,c85402020.filter2,tp,LOCATION_DECK,0,1,1,nil,e,tp,e:GetLabel()):GetFirst()
Duel.SendtoHand(tc,tp,REASON_EFFECT)
......
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