Commit 0cdcfd48 authored by VanillaSalt's avatar VanillaSalt

fix

parent ad68607a
......@@ -53,7 +53,7 @@ function c29904964.spop(e,tp,eg,ep,ev,re,r,rp)
end
function c29904964.rlevel(e,rc)
local c=e:GetHandler()
if c:IsLocation(LOCATION_GRAVE) and not c:IsSetCard(0xcf) then
if c:IsLocation(LOCATION_GRAVE) and not rc:IsSetCard(0xcf) then
return -1
else return c:GetLevel() end
end
......@@ -78,12 +78,12 @@ function c44968687.efilter(e,te)
return te:IsActiveType(TYPE_SPELL+TYPE_TRAP)
end
function c44968687.damtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(nil,tp,0,LOCATION_REMOVED,1,nil) end
local g=Duel.GetMatchingGroup(nil,tp,0,LOCATION_REMOVED,nil)
if chk==0 then return Duel.GetFieldGroupCount(tp,0,LOCATION_REMOVED)>0 end
local g=Duel.GetFieldGroup(tp,0,LOCATION_REMOVED)
Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,g,g:GetCount(),0,0)
end
function c44968687.damop(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(nil,tp,0,LOCATION_REMOVED,nil)
local g=Duel.GetFieldGroup(tp,0,LOCATION_REMOVED)
if Duel.SendtoGrave(g,REASON_EFFECT+REASON_RETURN)~=0 then
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD)
......
......@@ -99,4 +99,4 @@ function c45206713.spop(e,tp,eg,ep,ev,re,r,rp)
if g:GetCount()>0 then
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)
end
end
\ No newline at end of file
end
......@@ -29,9 +29,12 @@ function c56611470.xyzfilter(c,mg)
return c:IsXyzSummonable(mg)
end
function c56611470.mfilter1(c,exg)
return exg:IsExists(c56611470.mfilter2,1,nil,c,exg)
return exg:IsExists(c56611470.mfilter2,1,nil,c)
end
function c56611470.mfilter2(c,mc,exg)
function c56611470.mfilter2(c,mc)
return c.xyz_filter(mc)
end
function c56611470.mfilter3(c,mc,exg)
return exg:IsExists(Card.IsXyzSummonable,1,nil,Group.FromCards(c,mc))
end
function c56611470.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
......@@ -44,7 +47,7 @@ function c56611470.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local sg1=mg:FilterSelect(tp,c56611470.mfilter1,1,1,nil,exg)
local tc1=sg1:GetFirst()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_XMATERIAL)
local sg2=mg:FilterSelect(tp,c56611470.mfilter2,1,1,tc1,tc1,exg)
local sg2=mg:FilterSelect(tp,c56611470.mfilter3,1,1,tc1,tc1,exg)
sg1:Merge(sg2)
Duel.SetTargetCard(sg1)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_EXTRA)
......
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