Commit 5aedd1b2 authored by mercury233's avatar mercury233

fix

parent d94a7b07
......@@ -39,7 +39,7 @@ function c101005083.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local g=Duel.GetFieldGroup(tp,LOCATION_HAND,0)
local tc=g:RandomSelect(1-tp,1):GetFirst()
if Duel.SendtoGrave(tc,REASON_DISCARD+REASON_EFFECT)~=0 and not tc:IsCode(101005083)
if tc and Duel.SendtoGrave(tc,REASON_DISCARD+REASON_EFFECT)~=0 and not tc:IsCode(101005083)
and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 then
local spg=Duel.GetMatchingGroup(c101005083.spfilter,tp,LOCATION_HAND,0,nil,e,tp)
if spg:GetCount()<=0 then return end
......
......@@ -13,7 +13,7 @@ function c101005090.initial_effect(c)
e1:SetOperation(c101005090.desop)
c:RegisterEffect(e1)
end
function c101005090.desfilter(c)
function c101005090.desfilter(c,g)
return c:IsFaceup() and c:IsSetCard(0x207a) and g:IsContains(c)
end
function c101005090.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
......
......@@ -40,7 +40,7 @@ function c101006075.target(e,tp,eg,ep,ev,re,r,rp,chk)
end
function c101006075.activate(e,tp,eg,ep,ev,re,r,rp)
local chkf=tp
local mg1=Duel.GetMatchingGroup(aux.NecroValleyFIlter(c101006075.filter1),tp,LOCATION_GRAVE,0,nil)
local mg1=Duel.GetMatchingGroup(aux.NecroValleyFilter(c101006075.filter1),tp,LOCATION_GRAVE,0,nil)
local sg1=Duel.GetMatchingGroup(c101006075.filter2,tp,LOCATION_EXTRA,0,nil,e,tp,mg1,nil,chkf)
local mg2=nil
local sg2=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