Commit 97a542af authored by POLYMER's avatar POLYMER

fix

parent fc323e65
...@@ -29,7 +29,7 @@ function c10173034.initial_effect(c) ...@@ -29,7 +29,7 @@ function c10173034.initial_effect(c)
c:RegisterEffect(e4) c:RegisterEffect(e4)
end end
function c10173034.xyzcheck(g) function c10173034.xyzcheck(g)
return g:GetClassCount(Card.GetOriginalLevel)==1 return g:GetClassCount(Card.GetOriginalLevel)==1 and g:IsExists(Card.IsLevelAbove,1,nil,1)
end end
function c10173034.xmcon(e,tp,eg,ep,ev,re,r,rp) function c10173034.xmcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -27,7 +27,7 @@ end ...@@ -27,7 +27,7 @@ end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function cm.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return false end if chkc then return false end
local mg=Duel.GetMatchingGroup(cm.filter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,e,tp) local mg=Duel.GetMatchingGroup(cm.filter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,e,tp)
if chk==0 then return #mg>2 end if chk==0 then return #mg>=2 end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TARGET) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TARGET)
local sg1=mg:Select(tp,2,#mg,nil) local sg1=mg:Select(tp,2,#mg,nil)
Duel.SetTargetCard(sg1) Duel.SetTargetCard(sg1)
...@@ -49,7 +49,7 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -49,7 +49,7 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
e1:SetTargetRange(LOCATION_MZONE,LOCATION_MZONE) e1:SetTargetRange(LOCATION_MZONE,LOCATION_MZONE)
e1:SetLabel(eid) e1:SetLabel(eid)
e1:SetLabelObject(e2) e1:SetLabelObject(e2)
e1:SetCondition(function(e) e1:SetCondition(function(e)
local eid=e:GetLabel() local eid=e:GetLabel()
local sg=Duel.GetMatchingGroup(cm.cfilter2,0,LOCATION_MZONE,LOCATION_MZONE,nil,eid) local sg=Duel.GetMatchingGroup(cm.cfilter2,0,LOCATION_MZONE,LOCATION_MZONE,nil,eid)
return #sg==ct return #sg==ct
...@@ -58,18 +58,22 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -58,18 +58,22 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
local eid=e:GetLabel() local eid=e:GetLabel()
local sg=Duel.GetMatchingGroup(cm.cfilter2,0,LOCATION_MZONE,LOCATION_MZONE,nil,eid) local sg=Duel.GetMatchingGroup(cm.cfilter2,0,LOCATION_MZONE,LOCATION_MZONE,nil,eid)
local res=sg:IsContains(c) local res=sg:IsContains(c)
if res and Duel.GetFlagEffect(tp,m)>0 then --[[if res and Duel.GetFlagEffect(tp,m)>0 then
local tab={e:GetLabelObject():GetLabel()} local tab={e:GetLabelObject():GetLabel()}
for tc in aux.Next(sg) do table.insert(tab,tc:GetLevel()) end for tc in aux.Next(sg) do table.insert(tab,tc:GetLevel()) end
e:GetLabelObject():SetLabel(table.unpack(tab)) e:GetLabelObject():SetLabel(table.unpack(tab))
end end--]]
return res return res
end) end)
e1:SetValue(function(e,te) e1:SetValue(function(e,te)
local eid=e:GetLabel() local eid=e:GetLabel()
local res=te:IsActivated() and e:GetOwnerPlayer()~=te:GetOwnerPlayer() local res=te:IsActivated() and e:GetOwnerPlayer()~=te:GetOwnerPlayer()
local sg=Duel.GetMatchingGroup(cm.cfilter2,0,LOCATION_MZONE,LOCATION_MZONE,nil,eid)
if res then if res then
Duel.RegisterFlagEffect(tp,m,RESET_CHAIN,0,1) Duel.RegisterFlagEffect(tp,m,RESET_CHAIN,0,1)
local tab={}
for tc in aux.Next(sg) do table.insert(tab,tc:GetLevel()) end
e:GetLabelObject():SetLabel(table.unpack(tab))
end end
return false return false
end) 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