Commit 8fb77dc7 authored by POLYMER's avatar POLYMER

fix

parent a101af48
...@@ -64,14 +64,18 @@ function c43990110.mtop(e,tp,eg,ep,ev,re,r,rp) ...@@ -64,14 +64,18 @@ function c43990110.mtop(e,tp,eg,ep,ev,re,r,rp)
tc=tg:GetNext() tc=tg:GetNext()
end end
end end
function c43990110.xyzfilter(c) function c43990110.xyzfilter(c,mg)
return c:IsXyzSummonable(nil) return c:IsXyzSummonable(mg)
end
function c43990110.xyzfilter2(c)
return c:IsCanBeXyzMaterial(nil)
end end
function c43990110.xxgop(e,tp,eg,ep,ev,re,r,rp) function c43990110.xxgop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local off=3 local off=3
local ops={} local ops={}
local opval={} local opval={}
local mg=Duel.GetMatchingGroup(c43990110.xyzfilter2,tp,LOCATION_MZONE,0,nil)
ops[1]=aux.Stringid(43990110,4) ops[1]=aux.Stringid(43990110,4)
opval[0]=1 opval[0]=1
ops[2]=aux.Stringid(43990110,5) ops[2]=aux.Stringid(43990110,5)
...@@ -81,23 +85,23 @@ function c43990110.xxgop(e,tp,eg,ep,ev,re,r,rp) ...@@ -81,23 +85,23 @@ function c43990110.xxgop(e,tp,eg,ep,ev,re,r,rp)
opval[off-1]=3 opval[off-1]=3
off=off+1 off=off+1
end end
if Duel.IsExistingMatchingCard(c43990110.xyzfilter,tp,LOCATION_EXTRA,0,1,nil) then if Duel.IsExistingMatchingCard(c43990110.xyzfilter,tp,LOCATION_EXTRA,0,1,nil,mg) then
ops[off]=aux.Stringid(43990110,7) ops[off]=aux.Stringid(43990110,7)
opval[off-1]=3 opval[off-1]=4
off=off+1 off=off+1
end end
if off==1 then return end if off==1 then return end
local op=Duel.SelectOption(tp,table.unpack(ops)) local op=Duel.SelectOption(tp,table.unpack(ops))
if opval[op]==1 then if opval[op]==1 then
Duel.Damage(1-p,500,REASON_EFFECT) Duel.Damage(1-tp,500,REASON_EFFECT)
elseif opval[op]==2 then elseif opval[op]==2 then
Duel.Recover(p,500,REASON_EFFECT) Duel.Recover(tp,500,REASON_EFFECT)
elseif opval[op]==3 then elseif opval[op]==3 then
Duel.MoveToField(c,tp,tp,LOCATION_SZONE,POS_FACEUP,true) Duel.MoveToField(c,tp,tp,LOCATION_SZONE,POS_FACEUP,true)
elseif opval[op]==4 then elseif opval[op]==4 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) local g=Duel.GetMatchingGroup(c43990110.xyzfilter,tp,LOCATION_EXTRA,0,nil,mg)Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local tg=g:Select(tp,1,1,nil) local tg=g:Select(tp,1,1,nil)
Duel.XyzSummon(tp,tg:GetFirst(),nil) Duel.XyzSummon(tp,tg:GetFirst(),mg)
end end
end end
......
...@@ -9,7 +9,6 @@ function c95102000.initial_effect(c) ...@@ -9,7 +9,6 @@ function c95102000.initial_effect(c)
e1:SetCode(EFFECT_UNRELEASABLE_SUM) e1:SetCode(EFFECT_UNRELEASABLE_SUM)
e1:SetRange(LOCATION_MZONE) e1:SetRange(LOCATION_MZONE)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_SINGLE_RANGE+EFFECT_FLAG_UNCOPYABLE) e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_SINGLE_RANGE+EFFECT_FLAG_UNCOPYABLE)
e1:SetReset(RESET_EVENT+RESETS_STANDARD)
e1:SetValue(1) e1:SetValue(1)
c:RegisterEffect(e1) c:RegisterEffect(e1)
local e2=e1:Clone() local e2=e1:Clone()
......
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