Commit 57712bd2 authored by mercury233's avatar mercury233 Committed by Chen Bill

add treat_itself_tuner for 白の輪廻

parent 47399402
...@@ -28,6 +28,7 @@ function c16051717.initial_effect(c) ...@@ -28,6 +28,7 @@ function c16051717.initial_effect(c)
e3:SetOperation(c16051717.desop) e3:SetOperation(c16051717.desop)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
c16051717.treat_itself_tuner=true
function c16051717.valcheck(e,c) function c16051717.valcheck(e,c)
local g=c:GetMaterial() local g=c:GetMaterial()
if g:IsExists(Card.IsSetCard,1,nil,0x33) then if g:IsExists(Card.IsSetCard,1,nil,0x33) then
......
...@@ -27,6 +27,7 @@ function c17994645.initial_effect(c) ...@@ -27,6 +27,7 @@ function c17994645.initial_effect(c)
e3:SetValue(c17994645.valcon) e3:SetValue(c17994645.valcon)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
c17994645.treat_itself_tuner=true
function c17994645.valcheck(e,c) function c17994645.valcheck(e,c)
local g=c:GetMaterial() local g=c:GetMaterial()
if g:IsExists(Card.IsSetCard,1,nil,0x33) then if g:IsExists(Card.IsSetCard,1,nil,0x33) then
......
...@@ -21,6 +21,7 @@ function c20799347.initial_effect(c) ...@@ -21,6 +21,7 @@ function c20799347.initial_effect(c)
e2:SetOperation(c20799347.spop) e2:SetOperation(c20799347.spop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
c20799347.treat_itself_tuner=true
function c20799347.cfilter(c) function c20799347.cfilter(c)
return c:IsFacedown() or not c:IsRace(RACE_PSYCHO+RACE_WYRM) return c:IsFacedown() or not c:IsRace(RACE_PSYCHO+RACE_WYRM)
end end
......
...@@ -37,6 +37,7 @@ function c23338098.initial_effect(c) ...@@ -37,6 +37,7 @@ function c23338098.initial_effect(c)
e4:SetOperation(c23338098.spop) e4:SetOperation(c23338098.spop)
c:RegisterEffect(e4) c:RegisterEffect(e4)
end end
c23338098.treat_itself_tuner=true
function c23338098.valcheck(e,c) function c23338098.valcheck(e,c)
local g=c:GetMaterial() local g=c:GetMaterial()
if g:IsExists(Card.IsSetCard,1,nil,0x33) then if g:IsExists(Card.IsSetCard,1,nil,0x33) then
......
...@@ -19,6 +19,7 @@ function c27103517.initial_effect(c) ...@@ -19,6 +19,7 @@ function c27103517.initial_effect(c)
e2:SetOperation(c27103517.spop) e2:SetOperation(c27103517.spop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
c27103517.treat_itself_tuner=true
function c27103517.sumcon(e,c,minc) function c27103517.sumcon(e,c,minc)
if c==nil then return true end if c==nil then return true end
local tp=c:GetControler() local tp=c:GetControler()
......
...@@ -16,6 +16,7 @@ function c32825095.initial_effect(c) ...@@ -16,6 +16,7 @@ function c32825095.initial_effect(c)
e2:SetOperation(c32825095.tnop) e2:SetOperation(c32825095.tnop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
c32825095.treat_itself_tuner=true
function c32825095.sumsuc(e,tp,eg,ep,ev,re,r,rp) function c32825095.sumsuc(e,tp,eg,ep,ev,re,r,rp)
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
......
...@@ -12,6 +12,7 @@ function c38783169.initial_effect(c) ...@@ -12,6 +12,7 @@ function c38783169.initial_effect(c)
e1:SetOperation(c38783169.tnop) e1:SetOperation(c38783169.tnop)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
c38783169.treat_itself_tuner=true
function c38783169.tntg(e,tp,eg,ep,ev,re,r,rp,chk) function c38783169.tntg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return not e:GetHandler():IsType(TYPE_TUNER) end if chk==0 then return not e:GetHandler():IsType(TYPE_TUNER) end
end end
......
...@@ -10,3 +10,4 @@ function c47459126.initial_effect(c) ...@@ -10,3 +10,4 @@ function c47459126.initial_effect(c)
e1:SetValue(TYPE_TUNER) e1:SetValue(TYPE_TUNER)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
c47459126.treat_itself_tuner=true
...@@ -25,6 +25,7 @@ function c49296203.initial_effect(c) ...@@ -25,6 +25,7 @@ function c49296203.initial_effect(c)
e3:SetOperation(c49296203.posop) e3:SetOperation(c49296203.posop)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
c49296203.treat_itself_tuner=true
function c49296203.posfilter(c) function c49296203.posfilter(c)
return c:IsFaceup() and c:IsSetCard(0x11) and c:IsCanChangePosition() return c:IsFaceup() and c:IsSetCard(0x11) and c:IsCanChangePosition()
end end
......
...@@ -21,6 +21,7 @@ function c49930315.initial_effect(c) ...@@ -21,6 +21,7 @@ function c49930315.initial_effect(c)
e2:SetOperation(c49930315.tnop) e2:SetOperation(c49930315.tnop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
c49930315.treat_itself_tuner=true
function c49930315.cfilter(c) function c49930315.cfilter(c)
return c:IsAttribute(ATTRIBUTE_WATER) and c:IsDiscardable() return c:IsAttribute(ATTRIBUTE_WATER) and c:IsDiscardable()
end end
......
...@@ -21,6 +21,7 @@ function c52445243.initial_effect(c) ...@@ -21,6 +21,7 @@ function c52445243.initial_effect(c)
e2:SetLabelObject(e1) e2:SetLabelObject(e1)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
c52445243.treat_itself_tuner=true
function c52445243.valcheck(e,c) function c52445243.valcheck(e,c)
e:GetLabelObject():SetLabel(0) e:GetLabelObject():SetLabel(0)
local g=c:GetMaterial() local g=c:GetMaterial()
......
...@@ -42,6 +42,7 @@ function c53389254.initial_effect(c) ...@@ -42,6 +42,7 @@ function c53389254.initial_effect(c)
e4:SetOperation(c53389254.spop2) e4:SetOperation(c53389254.spop2)
c:RegisterEffect(e4) c:RegisterEffect(e4)
end end
c53389254.treat_itself_tuner=true
function c53389254.valcheck(e,c) function c53389254.valcheck(e,c)
local g=c:GetMaterial() local g=c:GetMaterial()
if g:IsExists(Card.IsSetCard,1,nil,0x33) then if g:IsExists(Card.IsSetCard,1,nil,0x33) then
......
...@@ -39,6 +39,7 @@ function c5614808.initial_effect(c) ...@@ -39,6 +39,7 @@ function c5614808.initial_effect(c)
e4:SetOperation(c5614808.operation) e4:SetOperation(c5614808.operation)
c:RegisterEffect(e4) c:RegisterEffect(e4)
end end
c5614808.treat_itself_tuner=true
function c5614808.descon(e,tp,eg,ep,ev,re,r,rp) function c5614808.descon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO) return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO)
end end
......
...@@ -22,6 +22,7 @@ function c56824871.initial_effect(c) ...@@ -22,6 +22,7 @@ function c56824871.initial_effect(c)
e2:SetOperation(c56824871.thop) e2:SetOperation(c56824871.thop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
c56824871.treat_itself_tuner=true
function c56824871.sprfilter(c) function c56824871.sprfilter(c)
return c:IsFaceup() and c:IsRace(RACE_WARRIOR) and c:IsAttribute(ATTRIBUTE_FIRE) return c:IsFaceup() and c:IsRace(RACE_WARRIOR) and c:IsAttribute(ATTRIBUTE_FIRE)
end end
......
...@@ -21,6 +21,7 @@ function c58062306.initial_effect(c) ...@@ -21,6 +21,7 @@ function c58062306.initial_effect(c)
e2:SetOperation(c58062306.operation) e2:SetOperation(c58062306.operation)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
c58062306.treat_itself_tuner=true
function c58062306.spcon(e,c) function c58062306.spcon(e,c)
if c==nil then return true end if c==nil then return true end
return Duel.GetFieldGroupCount(c:GetControler(),LOCATION_MZONE,0)==0 return Duel.GetFieldGroupCount(c:GetControler(),LOCATION_MZONE,0)==0
......
...@@ -28,6 +28,7 @@ function c63731062.initial_effect(c) ...@@ -28,6 +28,7 @@ function c63731062.initial_effect(c)
e2:SetOperation(c63731062.spop2) e2:SetOperation(c63731062.spop2)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
c63731062.treat_itself_tuner=true
function c63731062.spcon1(e,tp,eg,ep,ev,re,r,rp) function c63731062.spcon1(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO) return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO)
end end
......
...@@ -27,6 +27,7 @@ function c65398390.initial_effect(c) ...@@ -27,6 +27,7 @@ function c65398390.initial_effect(c)
e2:SetOperation(c65398390.spop) e2:SetOperation(c65398390.spop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
c65398390.treat_itself_tuner=true
function c65398390.descon(e,tp,eg,ep,ev,re,r,rp) function c65398390.descon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetEquipCount()>0 return e:GetHandler():GetEquipCount()>0
end end
......
...@@ -26,6 +26,7 @@ function c69811710.initial_effect(c) ...@@ -26,6 +26,7 @@ function c69811710.initial_effect(c)
e3:SetOperation(c69811710.spop) e3:SetOperation(c69811710.spop)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
c69811710.treat_itself_tuner=true
function c69811710.tgfilter(c) function c69811710.tgfilter(c)
return c:IsSetCard(0x11b,0xfe) and c:IsAbleToGrave() return c:IsSetCard(0x11b,0xfe) and c:IsAbleToGrave()
end end
......
...@@ -19,6 +19,7 @@ function c70456282.initial_effect(c) ...@@ -19,6 +19,7 @@ function c70456282.initial_effect(c)
e2:SetOperation(c70456282.lvop) e2:SetOperation(c70456282.lvop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
c70456282.treat_itself_tuner=true
function c70456282.spfilter(c,ft,tp) function c70456282.spfilter(c,ft,tp)
return c:IsSetCard(0x33) return c:IsSetCard(0x33)
and (ft>0 or (c:IsControler(tp) and c:GetSequence()<5)) and (c:IsControler(tp) or c:IsFaceup()) and (ft>0 or (c:IsControler(tp) and c:GetSequence()<5)) and (c:IsControler(tp) or c:IsFaceup())
......
...@@ -27,6 +27,7 @@ function c78229193.initial_effect(c) ...@@ -27,6 +27,7 @@ function c78229193.initial_effect(c)
e3:SetOperation(c78229193.operation) e3:SetOperation(c78229193.operation)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
c78229193.treat_itself_tuner=true
function c78229193.atktg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c78229193.atktg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsControler(1-tp) and chkc:IsLocation(LOCATION_MZONE) and chkc:IsFaceup() end if chkc then return chkc:IsControler(1-tp) and chkc:IsLocation(LOCATION_MZONE) and chkc:IsFaceup() end
if chk==0 then return Duel.IsExistingTarget(Card.IsFaceup,tp,0,LOCATION_MZONE,1,nil) end if chk==0 then return Duel.IsExistingTarget(Card.IsFaceup,tp,0,LOCATION_MZONE,1,nil) end
......
...@@ -36,6 +36,7 @@ function c80773359.initial_effect(c) ...@@ -36,6 +36,7 @@ function c80773359.initial_effect(c)
e4:SetOperation(c80773359.lvop) e4:SetOperation(c80773359.lvop)
c:RegisterEffect(e4) c:RegisterEffect(e4)
end end
c80773359.treat_itself_tuner=true
function c80773359.valcheck(e,c) function c80773359.valcheck(e,c)
local flag=0 local flag=0
local g=c:GetMaterial() local g=c:GetMaterial()
......
...@@ -31,6 +31,7 @@ function c8736823.initial_effect(c) ...@@ -31,6 +31,7 @@ function c8736823.initial_effect(c)
e3:SetOperation(c8736823.tdop) e3:SetOperation(c8736823.tdop)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
c8736823.treat_itself_tuner=true
function c8736823.cfilter(c,tp,se) function c8736823.cfilter(c,tp,se)
return c:IsFaceup() and c:IsLevel(3) and c:IsControler(tp) and (se==nil or c:GetReasonEffect()~=se) return c:IsFaceup() and c:IsLevel(3) and c:IsControler(tp) and (se==nil or c:GetReasonEffect()~=se)
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