Commit e3a9d9ae authored by Tachibana's avatar Tachibana

ndyd

parent 0052bbad
...@@ -41,8 +41,9 @@ function c19500004.initial_effect(c) ...@@ -41,8 +41,9 @@ function c19500004.initial_effect(c)
c19500004[0]=0 c19500004[0]=0
local ge2=Effect.CreateEffect(c) local ge2=Effect.CreateEffect(c)
ge2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) ge2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
ge2:SetCode(EVENT_TURN_END+PHASE_END) ge2:SetCode(EVENT_PHASE_START+PHASE_END)
ge2:SetOperation(c19500004.clear) ge2:SetOperation(c19500004.clear)
ge2:SetCountLimit(1)
Duel.RegisterEffect(ge2,0) Duel.RegisterEffect(ge2,0)
end end
end end
......
...@@ -41,8 +41,9 @@ function c19500005.initial_effect(c) ...@@ -41,8 +41,9 @@ function c19500005.initial_effect(c)
c19500005[1]=0 c19500005[1]=0
local ge2=Effect.CreateEffect(c) local ge2=Effect.CreateEffect(c)
ge2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) ge2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
ge2:SetCode(EVENT_TURN_END+PHASE_END) ge2:SetCode(EVENT_PHASE_START+PHASE_END)
ge2:SetOperation(c19500005.clear) ge2:SetOperation(c19500005.clear)
ge2:SetCountLimit(1)
Duel.RegisterEffect(ge2,0) Duel.RegisterEffect(ge2,0)
end end
end end
......
...@@ -25,8 +25,9 @@ function c19500007.initial_effect(c) ...@@ -25,8 +25,9 @@ function c19500007.initial_effect(c)
c19500007[0]=0 c19500007[0]=0
local ge2=Effect.CreateEffect(c) local ge2=Effect.CreateEffect(c)
ge2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) ge2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
ge2:SetCode(EVENT_TURN_END+PHASE_END) ge2:SetCode(EVENT_PHASE_START+PHASE_END)
ge2:SetOperation(c19500007.clear) ge2:SetOperation(c19500007.clear)
ge2:SetCountLimit(1)
Duel.RegisterEffect(ge2,0) Duel.RegisterEffect(ge2,0)
end end
end end
...@@ -57,7 +58,7 @@ function c19500007.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -57,7 +58,7 @@ function c19500007.operation(e,tp,eg,ep,ev,re,r,rp)
local fid=c:GetFieldID() local fid=c:GetFieldID()
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_PHASE+PHASE_END) e1:SetCode(EVENT_PHASE_START+PHASE_END)
e1:SetLabel(fid) e1:SetLabel(fid)
e1:SetLabelObject(tc) e1:SetLabelObject(tc)
e1:SetCountLimit(1) e1:SetCountLimit(1)
......
...@@ -27,7 +27,7 @@ function c19500010.initial_effect(c) ...@@ -27,7 +27,7 @@ function c19500010.initial_effect(c)
c19500010[0]=0 c19500010[0]=0
local ge1=Effect.CreateEffect(c) local ge1=Effect.CreateEffect(c)
ge1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) ge1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
ge1:SetCode(EVENT_TURN_END+PHASE_END) ge1:SetCode(EVENT_PHASE_START+PHASE_END)
ge1:SetOperation(c19500010.clear) ge1:SetOperation(c19500010.clear)
Duel.RegisterEffect(ge1,0) Duel.RegisterEffect(ge1,0)
end end
......
...@@ -8,6 +8,7 @@ function c19500011.initial_effect(c) ...@@ -8,6 +8,7 @@ function c19500011.initial_effect(c)
e1:SetCode(EVENT_CUSTOM+19500011) e1:SetCode(EVENT_CUSTOM+19500011)
e1:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DELAY) e1:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DELAY)
e1:SetRange(LOCATION_HAND) e1:SetRange(LOCATION_HAND)
e1:SetCountLimit(1,19500011)
e1:SetCondition(c19500011.spcon) e1:SetCondition(c19500011.spcon)
e1:SetTarget(c19500011.sptg) e1:SetTarget(c19500011.sptg)
e1:SetOperation(c19500011.spop) e1:SetOperation(c19500011.spop)
...@@ -19,19 +20,19 @@ function c19500011.initial_effect(c) ...@@ -19,19 +20,19 @@ function c19500011.initial_effect(c)
e2:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH) e2:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH)
e2:SetCode(EVENT_SPSUMMON_SUCCESS) e2:SetCode(EVENT_SPSUMMON_SUCCESS)
e2:SetProperty(EFFECT_FLAG_DELAY) e2:SetProperty(EFFECT_FLAG_DELAY)
e2:SetCountLimit(1,19500011) e2:SetCountLimit(1,19500011+100)
e2:SetTarget(c19500011.thtg) e2:SetTarget(c19500011.thtg)
e2:SetOperation(c19500011.thop) e2:SetOperation(c19500011.thop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
if not c19500011.global_check then -- if not c19500011.global_check then
c19500011.global_check=true -- c19500011.global_check=true
local ge1=Effect.CreateEffect(c) -- local ge1=Effect.CreateEffect(c)
ge1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) -- ge1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
ge1:SetCode(EVENT_DESTROYED) -- ge1:SetCode(EVENT_DESTROYED)
ge1:SetCondition(c19500011.regcon) -- ge1:SetCondition(c19500011.regcon)
ge1:SetOperation(c19500011.regop) -- ge1:SetOperation(c19500011.regop)
Duel.RegisterEffect(ge1,0) -- Duel.RegisterEffect(ge1,0)
end -- end
end end
function c19500011.spcfilter(c,tp) function c19500011.spcfilter(c,tp)
return c:IsReason(REASON_EFFECT) and c:IsPreviousControler(tp) and c:IsPreviousLocation(LOCATION_ONFIELD+LOCATION_HAND) return c:IsReason(REASON_EFFECT) and c:IsPreviousControler(tp) and c:IsPreviousLocation(LOCATION_ONFIELD+LOCATION_HAND)
......
...@@ -19,6 +19,7 @@ function c19500013.initial_effect(c) ...@@ -19,6 +19,7 @@ function c19500013.initial_effect(c)
e2:SetCode(EVENT_FREE_CHAIN) e2:SetCode(EVENT_FREE_CHAIN)
e2:SetProperty(EFFECT_FLAG_CARD_TARGET) e2:SetProperty(EFFECT_FLAG_CARD_TARGET)
e2:SetHintTiming(0,TIMINGS_CHECK_MONSTER+TIMING_END_PHASE) e2:SetHintTiming(0,TIMINGS_CHECK_MONSTER+TIMING_END_PHASE)
e2:SetCountLimit(1,19500013+100)
e2:SetCost(c19500013.thcost1) e2:SetCost(c19500013.thcost1)
e2:SetTarget(c19500013.thtg1) e2:SetTarget(c19500013.thtg1)
e2:SetOperation(c19500013.thop1) e2:SetOperation(c19500013.thop1)
......
...@@ -23,7 +23,7 @@ function c19500015.initial_effect(c) ...@@ -23,7 +23,7 @@ function c19500015.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c19500015.thfilter(c) function c19500015.thfilter(c)
return c:IsSetCard(0x3991) and c:IsAbleToHand() return c:IsSetCard(0x3991) and c:IsAbleToHand()and c:IsType(TYPE_MONSTER)
end end
function c19500015.thtg(e,tp,eg,ep,ev,re,r,rp,chk) function c19500015.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c19500015.thfilter,tp,LOCATION_DECK,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c19500015.thfilter,tp,LOCATION_DECK,0,1,nil) end
......
...@@ -7,6 +7,7 @@ function c19500021.initial_effect(c) ...@@ -7,6 +7,7 @@ function c19500021.initial_effect(c)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e1:SetCode(EVENT_CHAIN_NEGATED) e1:SetCode(EVENT_CHAIN_NEGATED)
e1:SetRange(LOCATION_HAND+LOCATION_MZONE+LOCATION_GRAVE) e1:SetRange(LOCATION_HAND+LOCATION_MZONE+LOCATION_GRAVE)
e1:SetCountLimit(1,19500021)
e1:SetCost(c19500021.descost) e1:SetCost(c19500021.descost)
e1:SetTarget(c19500021.destg) e1:SetTarget(c19500021.destg)
e1:SetOperation(c19500021.desop) e1:SetOperation(c19500021.desop)
...@@ -18,7 +19,7 @@ function c19500021.initial_effect(c) ...@@ -18,7 +19,7 @@ function c19500021.initial_effect(c)
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e2:SetCode(EVENT_DESTROYED) e2:SetCode(EVENT_DESTROYED)
e2:SetProperty(EFFECT_FLAG_DELAY) e2:SetProperty(EFFECT_FLAG_DELAY)
e2:SetCountLimit(1,19500021) e2:SetCountLimit(1,19500021+100)
e2:SetTarget(c19500021.thtg) e2:SetTarget(c19500021.thtg)
e2:SetOperation(c19500021.thop) e2:SetOperation(c19500021.thop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
......
...@@ -7,7 +7,7 @@ function c19500022.initial_effect(c) ...@@ -7,7 +7,7 @@ function c19500022.initial_effect(c)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetType(EFFECT_TYPE_IGNITION) e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_MZONE) e1:SetRange(LOCATION_MZONE)
e1:SetCountLimit(1) e1:SetCountLimit(1,19500021)
e1:SetCost(c19500022.cost) e1:SetCost(c19500022.cost)
e1:SetTarget(c19500022.tdtg) e1:SetTarget(c19500022.tdtg)
e1:SetOperation(c19500022.tdop) e1:SetOperation(c19500022.tdop)
...@@ -22,7 +22,7 @@ function c19500022.initial_effect(c) ...@@ -22,7 +22,7 @@ function c19500022.initial_effect(c)
e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e3:SetCode(EVENT_DESTROYED) e3:SetCode(EVENT_DESTROYED)
e3:SetProperty(EFFECT_FLAG_DELAY) e3:SetProperty(EFFECT_FLAG_DELAY)
e3:SetCountLimit(1,19500021) e3:SetCountLimit(1,19500021+100)
e3:SetTarget(c19500022.thtg) e3:SetTarget(c19500022.thtg)
e3:SetOperation(c19500022.thop) e3:SetOperation(c19500022.thop)
c:RegisterEffect(e3) c:RegisterEffect(e3)
......
...@@ -23,7 +23,7 @@ function c19500023.initial_effect(c) ...@@ -23,7 +23,7 @@ function c19500023.initial_effect(c)
c19500023[1]=0 c19500023[1]=0
local ge2=Effect.CreateEffect(c) local ge2=Effect.CreateEffect(c)
ge2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) ge2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
ge2:SetCode(EVENT_TURN_END+PHASE_END) ge2:SetCode(EVENT_PHASE_START+PHASE_END)
ge2:SetOperation(c19500023.clear) ge2:SetOperation(c19500023.clear)
Duel.RegisterEffect(ge2,0) Duel.RegisterEffect(ge2,0)
end end
......
...@@ -164,7 +164,7 @@ function c19500037.thop(e,tp,eg,ep,ev,re,r,rp) ...@@ -164,7 +164,7 @@ function c19500037.thop(e,tp,eg,ep,ev,re,r,rp)
tc1:RegisterFlagEffect(19500037,RESET_EVENT+RESETS_STANDARD,0,1,fid) tc1:RegisterFlagEffect(19500037,RESET_EVENT+RESETS_STANDARD,0,1,fid)
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_PHASE+PHASE_END) e1:SetCode(EVENT_PHASE_START+PHASE_END)
e1:SetCountLimit(1) e1:SetCountLimit(1)
e1:SetProperty(EFFECT_FLAG_IGNORE_IMMUNE) e1:SetProperty(EFFECT_FLAG_IGNORE_IMMUNE)
e1:SetLabel(fid) e1:SetLabel(fid)
......
...@@ -20,8 +20,8 @@ function c19500039.initial_effect(c) ...@@ -20,8 +20,8 @@ function c19500039.initial_effect(c)
e2:SetOperation(c19500039.scop) e2:SetOperation(c19500039.scop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
if not c19500039.global_check then if not c19500039.global_check then
c19500039[0]=0
c19500039.global_check=true c19500039.global_check=true
c19500039[0]=0
local ge1=Effect.CreateEffect(c) local ge1=Effect.CreateEffect(c)
ge1:SetType(EFFECT_TYPE_CONTINUOUS+EFFECT_TYPE_FIELD) ge1:SetType(EFFECT_TYPE_CONTINUOUS+EFFECT_TYPE_FIELD)
ge1:SetCode(EVENT_DESTROYED) ge1:SetCode(EVENT_DESTROYED)
...@@ -29,7 +29,8 @@ function c19500039.initial_effect(c) ...@@ -29,7 +29,8 @@ function c19500039.initial_effect(c)
Duel.RegisterEffect(ge1,0) Duel.RegisterEffect(ge1,0)
local ge2=Effect.CreateEffect(c) local ge2=Effect.CreateEffect(c)
ge2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) ge2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
ge2:SetCode(EVENT_TURN_END+PHASE_END) ge2:SetCode(EVENT_PHASE_START+PHASE_END)
ge2:SetCountLimit(1)
ge2:SetOperation(c19500039.clear) ge2:SetOperation(c19500039.clear)
Duel.RegisterEffect(ge2,0) Duel.RegisterEffect(ge2,0)
end end
...@@ -49,7 +50,7 @@ end ...@@ -49,7 +50,7 @@ end
function c19500039.spcon(e,c) function c19500039.spcon(e,c)
if c==nil then return true end if c==nil then return true end
local tp=c:GetControler() local tp=c:GetControler()
return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and c19500039[0]>6 return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and c19500039[0]>2
end end
function c19500039.fselect(g) function c19500039.fselect(g)
return g:GetClassCount(Card.GetOriginalCode)==g:GetCount() return g:GetClassCount(Card.GetOriginalCode)==g:GetCount()
......
...@@ -17,14 +17,14 @@ function c19500041.initial_effect(c) ...@@ -17,14 +17,14 @@ function c19500041.initial_effect(c)
e2:SetOperation(c19500041.thop) e2:SetOperation(c19500041.thop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c19500041.thfilter(c) function c19500041.thfilter2(c)
return c:IsSetCard(0x3990) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand() return c:IsSetCard(0x3990) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
end end
function c19500041.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c19500041.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_REMOVED) and chkc:IsControler(tp) and c19500041.thfilter2(chkc) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c19500041.thfilter2(chkc) end
if chk==0 then return Duel.IsExistingTarget(c19500041.thfilter2,tp,LOCATION_REMOVED,0,1,nil) end if chk==0 then return Duel.IsExistingTarget(c19500041.thfilter2,tp,LOCATION_GRAVE,0,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local g=Duel.SelectTarget(tp,c19500041.thfilter2,tp,LOCATION_REMOVED,0,1,1,nil) local g=Duel.SelectTarget(tp,c19500041.thfilter2,tp,LOCATION_GRAVE,0,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,g,1,0,0) Duel.SetOperationInfo(0,CATEGORY_TOHAND,g,1,0,0)
end end
function c19500041.thop(e,tp,eg,ep,ev,re,r,rp) function c19500041.thop(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -46,8 +46,9 @@ function c19500043.initial_effect(c) ...@@ -46,8 +46,9 @@ function c19500043.initial_effect(c)
c19500043[0]=0 c19500043[0]=0
local ge2=Effect.CreateEffect(c) local ge2=Effect.CreateEffect(c)
ge2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) ge2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
ge2:SetCode(EVENT_TURN_END+PHASE_END) ge2:SetCode(EVENT_PHASE_START+PHASE_END)
ge2:SetOperation(c19500043.clear) ge2:SetOperation(c19500043.clear)
ge2:SetCountLimit(1)
Duel.RegisterEffect(ge2,0) Duel.RegisterEffect(ge2,0)
end end
end end
......
...@@ -33,6 +33,7 @@ function c71400014.initial_effect(c) ...@@ -33,6 +33,7 @@ function c71400014.initial_effect(c)
end end
function c71400014.op1(e,tp,eg,ep,ev,re,r,rp) function c71400014.op1(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_CARD,0,71400014) Duel.Hint(HINT_CARD,0,71400014)
c:RegisterFlagEffect(71400014,RESET_PHASE+PHASE_END+RESET_EVENT+RESETS_STANDARD,EFFECT_FLAG_CLIENT_HINT,1,0,aux.Stringid(71400014,0))
Duel.Hint(HINT_SELECTMSG,rp,HINTMSG_TOGRAVE) Duel.Hint(HINT_SELECTMSG,rp,HINTMSG_TOGRAVE)
local g=Duel.SelectMatchingCard(rp,nil,rp,LOCATION_ONFIELD,0,1,1,aux.ExceptThisCard(re)) local g=Duel.SelectMatchingCard(rp,nil,rp,LOCATION_ONFIELD,0,1,1,aux.ExceptThisCard(re))
if g:GetCount()>0 then if g:GetCount()>0 then
...@@ -51,13 +52,12 @@ function c71400014.op1(e,tp,eg,ep,ev,re,r,rp) ...@@ -51,13 +52,12 @@ function c71400014.op1(e,tp,eg,ep,ev,re,r,rp)
e1:SetValue(c71400014.aclimit) e1:SetValue(c71400014.aclimit)
e1:SetReset(RESET_PHASE+PHASE_END) e1:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e1,rp) Duel.RegisterEffect(e1,rp)
c:RegisterFlagEffect(0,RESET_PHASE+PHASE_END+RESET_EVENT+RESETS_STANDARD,EFFECT_FLAG_CLIENT_HINT,1,0,aux.Stringid(71400014,0))
end end
function c71400014.aclimit(e,re,tp) function c71400014.aclimit(e,re,tp)
return not re:IsActiveType(TYPE_TRAP) return not re:IsActiveType(TYPE_TRAP)
end end
function c71400014.con1(e,tp,eg,ep,ev,re,r,rp) function c71400014.con1(e,tp,eg,ep,ev,re,r,rp)
return re:IsActiveType(TYPE_TRAP) and e:GetHandler():GetFlagEffect(1)~=0 return re:IsActiveType(TYPE_TRAP) and e:GetHandler():GetFlagEffect(1)~=0 and Duel.GetFlagEffect(tp,71400014)==0
end end
function c71400014.filter2(c,e,tp) function c71400014.filter2(c,e,tp)
return c:IsSetCard(0x714) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0x714) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
......
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