Commit b6ad492c authored by wyykak's avatar wyykak

fix gold cards

Signed-off-by: wyykak's avatarwyykak <wyy_1414@126.com>
parent c7412172
...@@ -36,7 +36,7 @@ function c86379688.ccfilter(c) ...@@ -36,7 +36,7 @@ function c86379688.ccfilter(c)
return not c:IsSetCard(0x810) and c:IsFaceup() return not c:IsSetCard(0x810) and c:IsFaceup()
end end
function c86379688.con1(e,tp,eg,ep,ev,re,r,rp) function c86379688.con1(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(c86379688.cfilter,tp,LOCATION_MZONE,0,1,nil) and not Duel.IsExistingMatchingCard(c86379688.ccfilter,tp,LOCATION_MZONE,0,1,nil) return not Duel.IsExistingMatchingCard(c86379688.ccfilter,tp,LOCATION_MZONE,0,1,nil)
end end
function c86379688.tfilter1(c,e,tp) function c86379688.tfilter1(c,e,tp)
return c:IsSetCard(0x810) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and (c:IsLocation(LOCATION_HAND) or (c:IsLocation(LOCATION_PZONE) and c:IsFaceup())) return c:IsSetCard(0x810) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and (c:IsLocation(LOCATION_HAND) or (c:IsLocation(LOCATION_PZONE) and c:IsFaceup()))
......
--羽衣若风✿永江衣玖 --羽衣若风✿永江衣玖
function c86379862.initial_effect(c) function c86379862.initial_effect(c)
--link summon --link summon
c86379862.AddLinkProcedure(c,nil,2,2,c86379862.lcheck) aux.AddLinkProcedure(c,nil,2,2,c86379862.lcheck)
c:EnableReviveLimit() c:EnableReviveLimit()
--destroy replace --destroy replace
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
......
--羽衣若水✿永江衣玖 --羽衣若水✿永江衣玖
function c86379864.initial_effect(c) function c86379864.initial_effect(c)
--link summon --link summon
c86379864.AddLinkProcedure(c,c86379864.matfilter,1) aux.AddLinkProcedure(c,c86379864.matfilter,1)
c:EnableReviveLimit()
--adk --adk
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD) e1:SetType(EFFECT_TYPE_FIELD)
...@@ -122,7 +123,7 @@ function c86379864.desreptg(e,c) ...@@ -122,7 +123,7 @@ function c86379864.desreptg(e,c)
local tc=e:GetHandler() local tc=e:GetHandler()
local seq=tc:GetSequence() local seq=tc:GetSequence()
local ec=tc:GetEquipTarget() local ec=tc:GetEquipTarget()
return c==ec or (c:GetSequence()==seq and c:IsControler(e:GetHandler())) or ec:GetLinkedGroup():IsContains(c) return c==ec or (c:GetSequence()==seq and c:IsControler(e:GetHandlerPlayer())) or ec:GetLinkedGroup():IsContains(c)
end end
--Link Summon --Link Summon
function c86379864.AddLinkProcedure(c,f,min,max,gf) function c86379864.AddLinkProcedure(c,f,min,max,gf)
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
function c86379868.initial_effect(c) function c86379868.initial_effect(c)
--link summon --link summon
aux.AddLinkProcedure(c,nil,2,99,c86379868.lcheck) aux.AddLinkProcedure(c,nil,2,99,c86379868.lcheck)
c:EnableReviveLimit()
--eqiup --eqiup
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(86379868,0)) e1:SetDescription(aux.Stringid(86379868,0))
...@@ -119,7 +120,7 @@ function c86379868.checkop(e,tp,eg,ep,ev,re,r,rp) ...@@ -119,7 +120,7 @@ function c86379868.checkop(e,tp,eg,ep,ev,re,r,rp)
local ec=c:GetEquipTarget() local ec=c:GetEquipTarget()
local pc=eg:GetFirst() local pc=eg:GetFirst()
local qg=pc:GetEquipGroup() local qg=pc:GetEquipGroup()
if eg:GetCount()==1 and qg:GetCount()>0 and (pc==ec or pc:GetSequence()==seq or ec:GetLinkedGroup():IsContains(pc)) and Duel.IsExistingMatchingCard(Card.IsFaceup,tp,LOCATION_MZONE,LOCATION_MZONE,1,pc) and Duel.SelectYesNo(tp,aux.Stringid(86379868,0)) then if eg:GetCount()==1 and qg:GetCount()>0 and (pc==ec or (pc:GetSequence()==seq and pc:IsControler(tp)) or ec:GetLinkedGroup():IsContains(pc)) and Duel.IsExistingMatchingCard(Card.IsFaceup,tp,LOCATION_MZONE,LOCATION_MZONE,1,pc) and Duel.SelectYesNo(tp,aux.Stringid(86379868,0)) then
Duel.Hint(HINT_CARD,0,86379868) Duel.Hint(HINT_CARD,0,86379868)
local qc=Duel.SelectMatchingCard(tp,Card.IsFaceup,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,pc) local qc=Duel.SelectMatchingCard(tp,Card.IsFaceup,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,pc)
Duel.HintSelection(qc) Duel.HintSelection(qc)
......
...@@ -13,7 +13,7 @@ function c86379888.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -13,7 +13,7 @@ function c86379888.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chk==0 then return true end if chk==0 then return true end
local c=e:GetHandler() local c=e:GetHandler()
local ti=1 local ti=1
while ti<=10 do while ti<=20 do
c86379888[ti]=0 c86379888[ti]=0
ti=ti+1 ti=ti+1
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