Commit 08c7d968 authored by POLYMER's avatar POLYMER

fix

parent 53695650
...@@ -29,12 +29,12 @@ function s.drcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -29,12 +29,12 @@ function s.drcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetCurrentChain()>2 and Duel.CheckChainUniqueness() return Duel.GetCurrentChain()>2 and Duel.CheckChainUniqueness()
end end
function s.costfilter(c) function s.costfilter(c)
return c:IsSetCard(0x355) and c:IsAbleToRemoveAsCost() and c:IsFaceup() and c:IsCode(id) return c:IsSetCard(0x355) and c:IsAbleToRemoveAsCost() and c:IsFaceup() and not c:IsCode(id)
end end
function s.drcost(e,tp,eg,ep,ev,re,r,rp,chk) function s.drcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(s.costfilter,tp,LOCATION_REMOVED,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(s.costfilter,tp,LOCATION_REMOVED,0,1,nil) end
local g=Duel.GetMatchingGroup(s.costfilter,tp,LOCATION_REMOVED,0,nil) local g=Duel.GetMatchingGroup(s.costfilter,tp,LOCATION_REMOVED,0,nil)
Duel.Remove(g,POS_FACEUP,REASON_COST) Duel.SendtoDeck(g,nil,SEQ_DECKSHUFFLE,REASON_COST)
end end
function s.drtg(e,tp,eg,ep,ev,re,r,rp,chk) function s.drtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsPlayerCanDraw(tp,2) end if chk==0 then return Duel.IsPlayerCanDraw(tp,2) end
......
--魂锁链兵 --魂锁链兵
local s,id,o=GetID() local s,id,o=GetID()
if not tama then xpcall(function() dofile("expansions/script/tama.lua") end,function() dofile("script/tama.lua") end) end
function s.initial_effect(c) function s.initial_effect(c)
c:EnableReviveLimit() c:EnableReviveLimit()
aux.AddFusionProcFunRep(c,s.ffilter,2,true) aux.AddFusionProcFunRep(c,s.ffilter,2,true)
...@@ -25,7 +26,7 @@ function s.initial_effect(c) ...@@ -25,7 +26,7 @@ function s.initial_effect(c)
e3:SetCategory(CATEGORY_POSITION) e3:SetCategory(CATEGORY_POSITION)
e3:SetType(EFFECT_TYPE_QUICK_O) e3:SetType(EFFECT_TYPE_QUICK_O)
e3:SetCode(EVENT_FREE_CHAIN) e3:SetCode(EVENT_FREE_CHAIN)
e3:SetRange(LOCATION_SZONE) e3:SetRange(LOCATION_MZONE)
e3:SetCountLimit(1) e3:SetCountLimit(1)
e3:SetTarget(s.postg) e3:SetTarget(s.postg)
e3:SetOperation(s.posop) e3:SetOperation(s.posop)
...@@ -36,6 +37,8 @@ function s.initial_effect(c) ...@@ -36,6 +37,8 @@ function s.initial_effect(c)
e4:SetRange(LOCATION_MZONE) e4:SetRange(LOCATION_MZONE)
e4:SetValue(s.efilter) e4:SetValue(s.efilter)
c:RegisterEffect(e4) c:RegisterEffect(e4)
elements={{"tama_elements",{{TAMA_ELEMENT_EARTH,1},{TAMA_ELEMENT_ENERGY,1}}}}
s[c]=elements
end end
function s.ffilter(c) function s.ffilter(c)
......
--魂锁之盾 --魂锁之盾
local s,id,o=GetID() local s,id,o=GetID()
if not tama then xpcall(function() dofile("expansions/script/tama.lua") end,function() dofile("script/tama.lua") end) end
function s.initial_effect(c) function s.initial_effect(c)
--Activate --Activate
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
...@@ -34,6 +35,8 @@ function s.initial_effect(c) ...@@ -34,6 +35,8 @@ function s.initial_effect(c)
e4:SetTarget(s.tgtg) e4:SetTarget(s.tgtg)
e4:SetOperation(s.tgop) e4:SetOperation(s.tgop)
c:RegisterEffect(e4) c:RegisterEffect(e4)
elements={{"tama_elements",{{TAMA_ELEMENT_EARTH,2},{TAMA_ELEMENT_ORDER,1}}}}
s[c]=elements
end end
function s.condition(e,tp,eg,ep,ev,re,r,rp) function s.condition(e,tp,eg,ep,ev,re,r,rp)
......
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