Commit 2f703e8e authored by mercury233's avatar mercury233

update

parent 09428720
...@@ -26,12 +26,8 @@ end ...@@ -26,12 +26,8 @@ end
function c13536606.matfilter(c) function c13536606.matfilter(c)
return not c:IsLinkType(TYPE_TOKEN) return not c:IsLinkType(TYPE_TOKEN)
end end
function c13536606.cfilter(c,mc)
local lg=c:GetLinkedGroup()
return lg and lg:IsContains(mc)
end
function c13536606.atkval(e,c) function c13536606.atkval(e,c)
return c:GetLinkedGroup():FilterCount(c13536606.cfilter,nil,c)*300 return c:GetMutualLinkedGroupCount()*300
end end
function c13536606.rfilter(c,tp,g) function c13536606.rfilter(c,tp,g)
local lk=c:GetLink() local lk=c:GetLink()
...@@ -41,7 +37,7 @@ function c13536606.rfilter(c,tp,g) ...@@ -41,7 +37,7 @@ function c13536606.rfilter(c,tp,g)
end end
function c13536606.tktg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c13536606.tktg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local c=e:GetHandler() local c=e:GetHandler()
local lg=c:GetLinkedGroup():Filter(c13536606.cfilter,nil,c) local lg=c:GetMutualLinkedGroup()
if chkc then return chkc:IsLocation(LOCATION_MZONE) and c13536606.rfilter(chkc,tp,lg) end if chkc then return chkc:IsLocation(LOCATION_MZONE) and c13536606.rfilter(chkc,tp,lg) end
if chk==0 then return Duel.IsExistingTarget(c13536606.rfilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil,tp,lg) if chk==0 then return Duel.IsExistingTarget(c13536606.rfilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil,tp,lg)
and Duel.IsPlayerCanSpecialSummonMonster(tp,13536607,0,0x4011,0,0,1,RACE_CYBERS,ATTRIBUTE_LIGHT) end and Duel.IsPlayerCanSpecialSummonMonster(tp,13536607,0,0x4011,0,0,1,RACE_CYBERS,ATTRIBUTE_LIGHT) end
......
...@@ -88,14 +88,10 @@ function c28776350.thop(e,tp,eg,ep,ev,re,r,rp) ...@@ -88,14 +88,10 @@ function c28776350.thop(e,tp,eg,ep,ev,re,r,rp)
local lg=e:GetHandler():GetLinkedGroup():Filter(Card.IsAbleToHand,nil) local lg=e:GetHandler():GetLinkedGroup():Filter(Card.IsAbleToHand,nil)
Duel.SendtoHand(lg,nil,REASON_EFFECT) Duel.SendtoHand(lg,nil,REASON_EFFECT)
end end
function c28776350.cfilter(c,mc)
local lg=c:GetLinkedGroup()
return lg and lg:IsContains(mc)
end
function c28776350.actg(e,tp,eg,ep,ev,re,r,rp,chk) function c28776350.actg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then if chk==0 then
local c=e:GetHandler() local c=e:GetHandler()
local lg=c:GetLinkedGroup():Filter(c28776350.cfilter,nil,c) local lg=c:GetMutualLinkedGroup()
local ct=lg:GetSum(Card.GetLink) local ct=lg:GetSum(Card.GetLink)
if ct<=0 or not Duel.IsPlayerCanDiscardDeck(tp,ct) then return false end if ct<=0 or not Duel.IsPlayerCanDiscardDeck(tp,ct) then return false end
local g=Duel.GetDecktopGroup(tp,ct) local g=Duel.GetDecktopGroup(tp,ct)
...@@ -112,7 +108,7 @@ function c28776350.thfilter(c,code) ...@@ -112,7 +108,7 @@ function c28776350.thfilter(c,code)
end end
function c28776350.acop(e,tp,eg,ep,ev,re,r,rp) function c28776350.acop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local lg=c:GetLinkedGroup():Filter(c28776350.cfilter,nil,c) local lg=c:GetMutualLinkedGroup()
local ct=lg:GetSum(Card.GetLink) local ct=lg:GetSum(Card.GetLink)
if ct<=0 or not Duel.IsPlayerCanDiscardDeck(tp,ct) then return end if ct<=0 or not Duel.IsPlayerCanDiscardDeck(tp,ct) then return end
Duel.ConfirmDecktop(tp,ct) Duel.ConfirmDecktop(tp,ct)
......
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