Commit 05740422 authored by mercury233's avatar mercury233

update

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