Commit fd639cf6 authored by nekrozar's avatar nekrozar

setcode

parent 052ca2bc
...@@ -35,9 +35,8 @@ function c12644061.initial_effect(c) ...@@ -35,9 +35,8 @@ function c12644061.initial_effect(c)
end end
function c12644061.discon(e,tp,eg,ep,ev,re,r,rp) function c12644061.discon(e,tp,eg,ep,ev,re,r,rp)
local a=Duel.GetAttacker() local a=Duel.GetAttacker()
local code=a:GetCode()
local at=Duel.GetAttackTarget() local at=Duel.GetAttackTarget()
return at and (code==79856792 or code==79407975) return at and a:IsSetCard(0x2034)
end end
function c12644061.disop(e,tp,eg,ep,ev,re,r,rp) function c12644061.disop(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetAttackTarget() local tc=Duel.GetAttackTarget()
......
...@@ -24,7 +24,7 @@ function c14469229.initial_effect(c) ...@@ -24,7 +24,7 @@ function c14469229.initial_effect(c)
end end
function c14469229.indfilter(c,tp) function c14469229.indfilter(c,tp)
return c:IsFaceup() and c:IsControler(tp) and c:IsOnField() and c:IsReason(REASON_EFFECT) 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:IsCode(79407975) or c:IsCode(79856792)))) 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.indtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return eg:IsExists(c14469229.indfilter,1,nil,tp) end if chk==0 then return eg:IsExists(c14469229.indfilter,1,nil,tp) end
......
...@@ -20,8 +20,7 @@ function c63806265.condition(e,tp,eg,ep,ev,re,r,rp) ...@@ -20,8 +20,7 @@ function c63806265.condition(e,tp,eg,ep,ev,re,r,rp)
return ct>6 return ct>6
end end
function c63806265.filter(c,e,tp) function c63806265.filter(c,e,tp)
local code=c:GetCode() return c:IsSetCard(0x2034) and c:IsCanBeSpecialSummoned(e,0,tp,true,false) and not c:IsHasEffect(EFFECT_NECRO_VALLEY)
return (code==79856792 or code==79407975) and c:IsCanBeSpecialSummoned(e,0,tp,true,false) and not c:IsHasEffect(EFFECT_NECRO_VALLEY)
end end
function c63806265.target(e,tp,eg,ep,ev,re,r,rp,chk) function c63806265.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
......
...@@ -31,8 +31,7 @@ function c7617253.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -31,8 +31,7 @@ function c7617253.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel.SetTargetCard(tg) Duel.SetTargetCard(tg)
end end
function c7617253.filter(c) function c7617253.filter(c)
local code=c:GetCode() return c:IsSetCard(0x2034) and c:IsAbleToHand()
return (code==79856792 or code==79407975) and c:IsAbleToHand()
end end
function c7617253.activate(e,tp,eg,ep,ev,re,r,rp) function c7617253.activate(e,tp,eg,ep,ev,re,r,rp)
local tg=Duel.GetAttacker() local tg=Duel.GetAttacker()
......
...@@ -2,13 +2,13 @@ ...@@ -2,13 +2,13 @@
function c86346643.initial_effect(c) function c86346643.initial_effect(c)
--fusion material --fusion material
c:EnableReviveLimit() c:EnableReviveLimit()
aux.AddFusionProcCodeFun(c,89943723,c86346643.fusfilter,1,false,false) aux.AddFusionProcCodeFun(c,89943723,aux.FilterBoolFunction(Card.IsSetCard,0x2034),1,false,false)
--spsummon condition --spsummon condition
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE) e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e1:SetCode(EFFECT_SPSUMMON_CONDITION) e1:SetCode(EFFECT_SPSUMMON_CONDITION)
e1:SetValue(c86346643.splimit) e1:SetValue(aux.fuslimit)
c:RegisterEffect(e1) c:RegisterEffect(e1)
--to deck --to deck
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
...@@ -42,13 +42,6 @@ function c86346643.initial_effect(c) ...@@ -42,13 +42,6 @@ function c86346643.initial_effect(c)
e4:SetOperation(c86346643.tdop3) e4:SetOperation(c86346643.tdop3)
c:RegisterEffect(e4) c:RegisterEffect(e4)
end end
function c86346643.splimit(e,se,sp,st)
return bit.band(st,SUMMON_TYPE_FUSION)==SUMMON_TYPE_FUSION
end
function c86346643.fusfilter(c)
local code=c:GetCode()
return code==79856792 or code==79407975
end
function c86346643.cfilter1(c) function c86346643.cfilter1(c)
return c:IsAbleToGraveAsCost() return c:IsAbleToGraveAsCost()
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