Commit 05740422 authored by mercury233's avatar mercury233

update

parent 22f7d05e
...@@ -4,9 +4,10 @@ function c14469229.initial_effect(c) ...@@ -4,9 +4,10 @@ function c14469229.initial_effect(c)
aux.EnablePendulumAttribute(c) aux.EnablePendulumAttribute(c)
--replace --replace
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) e2:SetType(EFFECT_TYPE_FIELD)
e2:SetCode(EFFECT_DESTROY_REPLACE) e2:SetCode(EFFECT_INDESTRUCTABLE_COUNT)
e2:SetRange(LOCATION_PZONE) e2:SetRange(LOCATION_PZONE)
e2:SetTargetRange(LOCATION_MZONE,0)
e2:SetCountLimit(1) e2:SetCountLimit(1)
e2:SetTarget(c14469229.indtg) e2:SetTarget(c14469229.indtg)
e2:SetValue(c14469229.indval) e2:SetValue(c14469229.indval)
...@@ -22,16 +23,11 @@ function c14469229.initial_effect(c) ...@@ -22,16 +23,11 @@ function c14469229.initial_effect(c)
e3:SetOperation(c14469229.operation) e3:SetOperation(c14469229.operation)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function c14469229.indfilter(c,tp) function c14469229.indtg(e,c)
return c:IsFaceup() and c:IsControler(tp) and c:IsOnField() and c:IsReason(REASON_EFFECT) return c:IsSetCard(0x1034) or (c:IsLocation(LOCATION_MZONE) and c:IsSetCard(0x2034))
and (c:IsSetCard(0x1034) or (c:IsLocation(LOCATION_MZONE) and c:IsSetCard(0x2034)))
end end
function c14469229.indtg(e,tp,eg,ep,ev,re,r,rp,chk) function c14469229.indval(e,re,r,rp)
if chk==0 then return eg:IsExists(c14469229.indfilter,1,nil,tp) end return bit.band(r,REASON_EFFECT)~=0
return true
end
function c14469229.indval(e,c)
return c14469229.indfilter(c,e:GetHandlerPlayer())
end end
function c14469229.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c14469229.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsReleasable() end if chk==0 then return e:GetHandler():IsReleasable() end
......
...@@ -33,13 +33,14 @@ function c20409757.initial_effect(c) ...@@ -33,13 +33,14 @@ function c20409757.initial_effect(c)
local e5=e4:Clone() local e5=e4:Clone()
e5:SetCode(EFFECT_CHANGE_RSCALE) e5:SetCode(EFFECT_CHANGE_RSCALE)
c:RegisterEffect(e5) c:RegisterEffect(e5)
-- --indes
local e6=Effect.CreateEffect(c) local e6=Effect.CreateEffect(c)
e6:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) e6:SetType(EFFECT_TYPE_FIELD)
e6:SetCode(EFFECT_DESTROY_REPLACE) e6:SetCode(EFFECT_INDESTRUCTABLE_COUNT)
e6:SetRange(LOCATION_MZONE) e6:SetRange(LOCATION_MZONE)
e6:SetTargetRange(LOCATION_PZONE,0)
e6:SetCountLimit(1) e6:SetCountLimit(1)
e6:SetTarget(c20409757.indtg) e6:SetTarget(aux.TRUE)
e6:SetValue(c20409757.indval) e6:SetValue(c20409757.indval)
c:RegisterEffect(e6) c:RegisterEffect(e6)
end end
...@@ -70,14 +71,6 @@ end ...@@ -70,14 +71,6 @@ end
function c20409757.slcon(e) function c20409757.slcon(e)
return not Duel.IsExistingMatchingCard(c20409757.slfilter,e:GetHandlerPlayer(),LOCATION_PZONE,0,1,e:GetHandler()) return not Duel.IsExistingMatchingCard(c20409757.slfilter,e:GetHandlerPlayer(),LOCATION_PZONE,0,1,e:GetHandler())
end end
function c20409757.filter(c,tp) function c20409757.indval(e,re,r,rp)
return c:IsControler(tp) and c:IsLocation(LOCATION_PZONE) return bit.band(r,REASON_EFFECT)~=0 and rp==1-e:GetHandlerPlayer()
and c:IsReason(REASON_EFFECT) and c:GetReasonPlayer()==1-tp
end
function c20409757.indtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return eg:IsExists(c20409757.filter,1,nil,tp) end
return true
end
function c20409757.indval(e,c)
return c20409757.filter(c,e:GetHandlerPlayer())
end end
...@@ -16,13 +16,14 @@ function c25231813.initial_effect(c) ...@@ -16,13 +16,14 @@ function c25231813.initial_effect(c)
e2:SetProperty(EFFECT_FLAG_CANNOT_DISABLE) e2:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e2:SetValue(c25231813.eqlimit) e2:SetValue(c25231813.eqlimit)
c:RegisterEffect(e2) c:RegisterEffect(e2)
-- --indes
local e3=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_CONTINUOUS+EFFECT_TYPE_EQUIP) e3:SetType(EFFECT_TYPE_EQUIP)
e3:SetCode(EFFECT_DESTROY_REPLACE) e3:SetCode(EFFECT_INDESTRUCTABLE_COUNT)
e3:SetCountLimit(2) e3:SetCountLimit(2)
e3:SetTarget(c25231813.reptg1) e3:SetValue(c25231813.indval)
c:RegisterEffect(e3) c:RegisterEffect(e3)
--replace
local e4=Effect.CreateEffect(c) local e4=Effect.CreateEffect(c)
e4:SetType(EFFECT_TYPE_CONTINUOUS+EFFECT_TYPE_EQUIP) e4:SetType(EFFECT_TYPE_CONTINUOUS+EFFECT_TYPE_EQUIP)
e4:SetCode(EFFECT_DESTROY_REPLACE) e4:SetCode(EFFECT_DESTROY_REPLACE)
...@@ -50,9 +51,8 @@ function c25231813.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -50,9 +51,8 @@ function c25231813.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.Equip(tp,c,tc) Duel.Equip(tp,c,tc)
end end
end end
function c25231813.reptg1(e,tp,eg,ep,ev,re,r,rp,chk) function c25231813.indval(e,re,r,rp)
if chk==0 then return e:GetHandler():GetEquipTarget():IsReason(REASON_BATTLE) end return bit.band(r,REASON_BATTLE)~=0
return true
end end
function c25231813.reptg2(e,tp,eg,ep,ev,re,r,rp,chk) function c25231813.reptg2(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():GetEquipTarget():IsReason(REASON_EFFECT) if chk==0 then return e:GetHandler():GetEquipTarget():IsReason(REASON_EFFECT)
......
--ゴゴゴゴーレム --ゴゴゴゴーレム
function c62476815.initial_effect(c) function c62476815.initial_effect(c)
--battle des rep --battle indes
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_CONTINUOUS+EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_DESTROY_REPLACE) e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e1:SetRange(LOCATION_MZONE)
e1:SetCode(EFFECT_INDESTRUCTABLE_COUNT)
e1:SetCountLimit(1) e1:SetCountLimit(1)
e1:SetTarget(c62476815.reptg) e1:SetValue(c62476815.valcon)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c62476815.reptg(e,tp,eg,ep,ev,re,r,rp,chk) function c62476815.valcon(e,re,r,rp)
if chk==0 then return e:GetHandler():IsDefensePos() return bit.band(r,REASON_BATTLE)~=0 and e:GetHandler():IsDefensePos()
and e:GetHandler():IsReason(REASON_BATTLE) end
return true
end end
--クロック・リゾネーター --クロック・リゾネーター
function c77087109.initial_effect(c) function c77087109.initial_effect(c)
--battle des rep --indes
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_CONTINUOUS+EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_DESTROY_REPLACE) e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e1:SetRange(LOCATION_MZONE)
e1:SetCode(EFFECT_INDESTRUCTABLE_COUNT)
e1:SetCountLimit(1) e1:SetCountLimit(1)
e1:SetTarget(c77087109.reptg) e1:SetValue(c77087109.valcon)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c77087109.reptg(e,tp,eg,ep,ev,re,r,rp,chk) function c77087109.valcon(e,re,r,rp)
if chk==0 then return e:GetHandler():IsPosition(POS_FACEUP_DEFENSE) end return bit.band(r,REASON_EFFECT+REASON_BATTLE)~=0 and e:GetHandler():IsDefensePos()
return true
end end
...@@ -2,11 +2,12 @@ ...@@ -2,11 +2,12 @@
function c80335817.initial_effect(c) function c80335817.initial_effect(c)
--pendulum summon --pendulum summon
aux.EnablePendulumAttribute(c) aux.EnablePendulumAttribute(c)
-- --indes
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) e2:SetType(EFFECT_TYPE_FIELD)
e2:SetCode(EFFECT_DESTROY_REPLACE) e2:SetCode(EFFECT_INDESTRUCTABLE_COUNT)
e2:SetRange(LOCATION_PZONE) e2:SetRange(LOCATION_PZONE)
e2:SetTargetRange(LOCATION_MZONE,0)
e2:SetCountLimit(1) e2:SetCountLimit(1)
e2:SetTarget(c80335817.indtg) e2:SetTarget(c80335817.indtg)
e2:SetValue(c80335817.indval) e2:SetValue(c80335817.indval)
...@@ -31,16 +32,11 @@ function c80335817.initial_effect(c) ...@@ -31,16 +32,11 @@ function c80335817.initial_effect(c)
e4:SetOperation(c80335817.rmop) e4:SetOperation(c80335817.rmop)
c:RegisterEffect(e4) c:RegisterEffect(e4)
end end
function c80335817.filter(c,tp) function c80335817.indtg(e,c)
return c:IsControler(tp) and c:IsLocation(LOCATION_MZONE) and c:IsType(TYPE_PENDULUM) return c:IsType(TYPE_PENDULUM)
and c:IsReason(REASON_EFFECT) and c:GetReasonPlayer()==1-tp
end end
function c80335817.indtg(e,tp,eg,ep,ev,re,r,rp,chk) function c80335817.indval(e,re,r,rp)
if chk==0 then return eg:IsExists(c80335817.filter,1,nil,tp) end return bit.band(r,REASON_EFFECT)~=0 and rp==1-e:GetHandlerPlayer()
return true
end
function c80335817.indval(e,c)
return c80335817.filter(c,e:GetHandlerPlayer())
end end
function c80335817.atkcon(e,tp,eg,ep,ev,re,r,rp) function c80335817.atkcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -36,7 +36,7 @@ end ...@@ -36,7 +36,7 @@ end
function c81994591.indop(e,tp,eg,ep,ev,re,r,rp) function c81994591.indop(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)
e1:SetCode(EFFECT_DESTROY_SUBSTITUTE) e1:SetCode(EFFECT_INDESTRUCTABLE)
e1:SetTargetRange(LOCATION_MZONE,0) e1:SetTargetRange(LOCATION_MZONE,0)
e1:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,0x1d)) e1:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,0x1d))
e1:SetReset(RESET_PHASE+PHASE_END) e1:SetReset(RESET_PHASE+PHASE_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