Commit 948dd987 authored by mercury233's avatar mercury233

fix チェーン・マテリアル and so on

can't be used by copy effect
parent 8571cd8d
...@@ -20,7 +20,7 @@ function c20858318.con(e,tp,eg,ep,ev,re,r,rp) ...@@ -20,7 +20,7 @@ function c20858318.con(e,tp,eg,ep,ev,re,r,rp)
and Duel.IsExistingMatchingCard(c20858318.cfilter,tp,LOCATION_MZONE,0,1,nil,74153887) and Duel.IsExistingMatchingCard(c20858318.cfilter,tp,LOCATION_MZONE,0,1,nil,74153887)
end end
function c20858318.tg(e,tp,eg,ep,ev,re,r,rp,chk) function c20858318.tg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return e:IsHasType(EFFECT_TYPE_ACTIVATE) end
local g=Duel.GetFieldGroup(tp,LOCATION_MZONE,0) local g=Duel.GetFieldGroup(tp,LOCATION_MZONE,0)
Duel.SetTargetCard(g) Duel.SetTargetCard(g)
end end
......
...@@ -18,7 +18,8 @@ function c39719977.filter2(c,code) ...@@ -18,7 +18,8 @@ function c39719977.filter2(c,code)
return c:IsFaceup() and bit.band(tpe,TYPE_NORMAL)~=0 and bit.band(tpe,TYPE_TOKEN)==0 and c:IsCode(code) return c:IsFaceup() and bit.band(tpe,TYPE_NORMAL)~=0 and bit.band(tpe,TYPE_TOKEN)==0 and c:IsCode(code)
end end
function c39719977.target(e,tp,eg,ep,ev,re,r,rp,chk) function c39719977.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c39719977.filter,tp,LOCATION_MZONE,0,3,nil,tp) end if chk==0 then return e:IsHasType(EFFECT_TYPE_ACTIVATE)
and Duel.IsExistingMatchingCard(c39719977.filter,tp,LOCATION_MZONE,0,3,nil,tp) end
end end
function c39719977.activate(e,tp,eg,ep,ev,re,r,rp) function c39719977.activate(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(c39719977.filter,tp,LOCATION_MZONE,0,nil,tp) local g=Duel.GetMatchingGroup(c39719977.filter,tp,LOCATION_MZONE,0,nil,tp)
......
...@@ -6,6 +6,7 @@ function c39980304.initial_effect(c) ...@@ -6,6 +6,7 @@ function c39980304.initial_effect(c)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET) e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetCode(EVENT_FREE_CHAIN) e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCost(c39980304.cost) e1:SetCost(c39980304.cost)
e1:SetTarget(c39980304.target)
e1:SetOperation(c39980304.activate) e1:SetOperation(c39980304.activate)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
...@@ -19,6 +20,9 @@ function c39980304.cost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -19,6 +20,9 @@ function c39980304.cost(e,tp,eg,ep,ev,re,r,rp,chk)
e1:SetReset(RESET_PHASE+PHASE_END) e1:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e1,tp)
end end
function c39980304.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:IsHasType(EFFECT_TYPE_ACTIVATE) end
end
function c39980304.activate(e,tp,eg,ep,ev,re,r,rp) function c39980304.activate(e,tp,eg,ep,ev,re,r,rp)
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
e1:SetDescription(aux.Stringid(39980304,0)) e1:SetDescription(aux.Stringid(39980304,0))
......
...@@ -5,6 +5,7 @@ function c88789641.initial_effect(c) ...@@ -5,6 +5,7 @@ function c88789641.initial_effect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN) e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCost(c88789641.cost) e1:SetCost(c88789641.cost)
e1:SetTarget(c88789641.target)
e1:SetOperation(c88789641.activate) e1:SetOperation(c88789641.activate)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
...@@ -12,6 +13,9 @@ function c88789641.cost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -12,6 +13,9 @@ function c88789641.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsDiscardable,tp,LOCATION_HAND,0,1,e:GetHandler()) end if chk==0 then return Duel.IsExistingMatchingCard(Card.IsDiscardable,tp,LOCATION_HAND,0,1,e:GetHandler()) end
Duel.DiscardHand(tp,Card.IsDiscardable,1,1,REASON_COST+REASON_DISCARD) Duel.DiscardHand(tp,Card.IsDiscardable,1,1,REASON_COST+REASON_DISCARD)
end end
function c88789641.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:IsHasType(EFFECT_TYPE_ACTIVATE) end
end
function c88789641.activate(e,tp,eg,ep,ev,re,r,rp) function c88789641.activate(e,tp,eg,ep,ev,re,r,rp)
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD) e1:SetType(EFFECT_TYPE_FIELD)
......
...@@ -7,6 +7,7 @@ function c95676943.initial_effect(c) ...@@ -7,6 +7,7 @@ function c95676943.initial_effect(c)
e1:SetHintTiming(0,TIMING_MAIN_END) e1:SetHintTiming(0,TIMING_MAIN_END)
e1:SetCondition(c95676943.condition) e1:SetCondition(c95676943.condition)
e1:SetCost(c95676943.cost) e1:SetCost(c95676943.cost)
e1:SetTarget(c95676943.target)
e1:SetOperation(c95676943.activate) e1:SetOperation(c95676943.activate)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
...@@ -17,6 +18,9 @@ function c95676943.cost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -17,6 +18,9 @@ function c95676943.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckLPCost(tp,2000) end if chk==0 then return Duel.CheckLPCost(tp,2000) end
Duel.PayLPCost(tp,2000) Duel.PayLPCost(tp,2000)
end end
function c95676943.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:IsHasType(EFFECT_TYPE_ACTIVATE) end
end
function c95676943.activate(e,tp,eg,ep,ev,re,r,rp) function c95676943.activate(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
c:SetTurnCounter(0) c:SetTurnCounter(0)
......
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