Commit 069aa9da authored by Tachibana's avatar Tachibana

ndyd

parent 91a019e9
No preview for this file type
......@@ -49,7 +49,7 @@ function cm.afilter(c)
return rk.check(c,"DAIOU") and c:IsType(TYPE_MONSTER) and not c:IsPublic()
end
function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
if chk==0 then return Duel.IsExistingMatchingCard(cm.afilter,tp,LOCATION_HAND,0,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_CONFIRM)
local sg=Duel.SelectMatchingCard(tp,cm.afilter,tp,LOCATION_HAND,0,1,1,nil)
Duel.ConfirmCards(1-tp,sg)
......@@ -72,6 +72,7 @@ function cm.op(e,tp,eg,ep,ev,re,r,rp)
tc:RegisterFlagEffect(m,RESET_EVENT+RESETS_STANDARD,EFFECT_FLAG_CLIENT_HINT,0,0,aux.Stringid(m,4))
--serch
local e2=Effect.CreateEffect(c)
e2:SetDescription(m,5)
e2:SetCategory(CATEGORY_TOGRAVE+CATEGORY_EQUIP)
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e2:SetCode(EVENT_SUMMON_SUCCESS)
......
......@@ -71,7 +71,7 @@ function cm.op1(e,tp)
local g=Duel.SelectMatchingCard(tp,cm.sfilter,tp,LOCATION_HAND,0,1,1,nil)
if g:GetCount()>0 then
Duel.Summon(tp,g:GetFirst(),true,nil)
Duel.RegisterFlagEffect(tp,m+2,0,0,0)
Duel.RegisterFlagEffect(tp,m+2,RESET_PHASE+PHASE_END,0,0)
end
end
function cm.val(e,re)
......
--吉尔·德·雷
local m=16160012
local cm=_G["c"..m]
function cm.initial_effect(c)
c:EnableReviveLimit()
aux.AddSynchroProcedure(c,aux.FilterBoolFunction(Card.IsSynchroType,TYPE_SYNCHRO),aux.NonTuner(Card.IsSynchroType,TYPE_FUSION),1)
--
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_INDESTRUCTABLE_BATTLE)
e1:SetRange(LOCATION_MZONE)
e1:SetTargetRange(LOCATION_ONFIELD,0)
e1:SetTarget(cm.inval)
e1:SetValue(1)
c:RegisterEffect(e1)
local e2=e1:Clone()
e2:SetCode(EFFECT_INDESTRUCTABLE_EFFECT)
c:RegisterEffect(e2)
--
local e3=Effect.CreateEffect(c)
e3:SetDescription(aux.Stringid(m,1))
e3:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_TOKEN)
e3:SetType(EFFECT_TYPE_IGNITION)
e3:SetRange(LOCATION_MZONE)
e3:SetCountLimit(1)
e3:SetCost(cm.cost)
e3:SetTarget(cm.target)
e3:SetOperation(cm.op)
c:RegisterEffect(e3)
end
c16160012.material_type=TYPE_SYNCHRO
function cm.inval(e,c)
return c:IsType(TYPE_TOKEN)
end
function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckLPCost(tp,1000) end
Duel.PayLPCost(tp,1000)
end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>1 and not Duel.IsPlayerAffectedByEffect(tp,59822133) and Duel.IsPlayerCanSpecialSummonMonster(tp,16160013,nil,0x4011,3500,3500,10,RACE_SEASERPENT,ATTRIBUTE_WATER) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,2,0,0)
Duel.SetOperationInfo(0,CATEGORY_TOKEN,nil,2,0,0)
end
function cm.op(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLocationCount(tp,LOCATION_MZONE)>1 and not Duel.IsPlayerAffectedByEffect(tp,59822133) and Duel.IsPlayerCanSpecialSummonMonster(tp,16160013,nil,0x4011,3500,3500,10,RACE_SEASERPENT,ATTRIBUTE_WATER) then
for i=1,2 do
local token=Duel.CreateToken(tp,16160013)
Duel.SpecialSummonStep(token,0,tp,tp,false,false,POS_FACEUP)
token:RegisterFlagEffect(m,RESET_EVENT+RESETS_STANDARD,0,0,0)
end
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetDescription(aux.Stringid(16160012,2))
e1:SetProperty(EFFECT_FLAG_CLIENT_HINT)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_CHAIN_SOLVING)
e1:SetCountLimit(1)
e1:SetOperation(cm.desop)
Duel.RegisterEffect(e1,tp)
Duel.SpecialSummonComplete()
end
end
function cm.filter1(c)
return c:IsType(TYPE_TOKEN) and c:GetFlagEffect(m)>0
end
function cm.desop(e,tp,eg,ep,ev,re,r,rp)
if not Duel.IsExistingMatchingCard(cm.filter1,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) then e:Reset() end
local tep=Duel.TossCoin(tp,1)
local rev=Duel.GetCurrentChain()
local te,cp=Duel.GetChainInfo(rev,CHAININFO_TRIGGERING_EFFECT,CHAININFO_TRIGGERING_PLAYER)
if cp==tep then return end
local condition=te:GetCondition()
local cost=te:GetCost()
local target=te:GetTarget()
local operation=te:GetOperation()
local ceg,cep,cev,cre,cr,crp=Duel.GetChainEvent(rev)
if (not condition or condition(te,tep,ceg,cep,cev,cre,cr,crp)) and (not cost or cost(te,tep,ceg,cep,cev,cre,cr,crp,0)) and (not target or target(te,tep,ceg,cep,cev,cre,cr,crp,0)) then
Duel.Hint(HINT_MESSAGE,0,aux.Stringid(m,2))
Duel.Hint(HINT_MESSAGE,0,aux.Stringid(m,2))
Duel.ClearTargetCard()
te:SetProperty(te:GetProperty())
if cost then cost(te,tep,ceg,cep,cev,cre,cr,crp,1) end
if target then target(te,tep,ceg,cep,cev,cre,cr,crp,1) end
local g=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS)
if g and g:GetCount()>0 then
local tg=g:GetFirst()
while tg do
tg:CreateEffectRelation(te)
tg=g:GetNext()
end
end
Duel.ChangeChainOperation(rev,cm.op2)
if operation then operation(te,tep,ceg,cep,cev,cre,cr,crp) end
if g and g:GetCount()>0 then
tg=g:GetFirst()
while tg do
tg:ReleaseEffectRelation(te)
tg=g:GetNext()
end
end
else
Duel.Hint(HINT_MESSAGE,0,aux.Stringid(m,3))
Duel.Hint(HINT_MESSAGE,1,aux.Stringid(m,3))
Duel.ChangeChainOperation(rev,cm.op2)
end
end
function cm.op2(e,tp)
return false
end
----
\ No newline at end of file
......@@ -17,6 +17,7 @@ function cm.initial_effect(c)
c:RegisterEffect(e1)
--disable summon
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(m,0))
e2:SetCategory(CATEGORY_DISABLE_SUMMON+CATEGORY_DESTROY+CATEGORY_DRAW)
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e2:SetCode(EVENT_SUMMON)
......@@ -68,6 +69,7 @@ function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SendtoGrave(tc,REASON_COST+REASON_DISCARD)
else
e:SetLabel(0)
Duel.SendtoGrave(tc,REASON_COST+REASON_DISCARD)
end
end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
......
......@@ -85,7 +85,6 @@ function c85400100.zx(e,tp,eg,ep,ev,re,r,rp)
e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
tc:RegisterEffect(e1)
tc:RegisterFlagEffect(85400000,RESET_EVENT+RESET_PHASE+PHASE_END,0,1)
Duel.BreakEffect()
Duel.Remove(c,POS_FACEUP,REASON_EFFECT)
end
end
......
......@@ -34,7 +34,7 @@ function c85401440.initial_effect(c)
local e4=Effect.CreateEffect(c)
e4:SetDescription(aux.Stringid(85401440,1))
e4:SetCategory(CATEGORY_SEARCH)
e4:SetProperty(EFFECT_CANNOT_DISABLE+EFFECT_CANNOT_INACTIVATE)
e4:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_CANNOT_INACTIVATE)
e4:SetType(EFFECT_TYPE_IGNITION)
e4:SetRange(LOCATION_MZONE)
e4:SetCountLimit(1,85401440+EFFECT_COUNT_CODE_DUEL)
......@@ -88,7 +88,7 @@ function c85401440.op(e,tp,eg,ep,ev,re,r,rp)
Duel.BreakEffect()
end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_POSCHANGE)
local g=Duel.SelectTarget(tp,c85401440.gl,tp,0,LOCATION_MZONE,1,1,nil)
local g=Duel.SelectMatchingCard(tp,c85401440.gl,tp,0,LOCATION_MZONE,1,1,nil)
local tc=g:GetFirst()
if tc and tc:IsRelateToEffect(e) then
Duel.ChangePosition(tc,POS_FACEUP_DEFENSE,POS_FACEUP_ATTACK,POS_FACEUP_ATTACK,POS_FACEUP_ATTACK)
......
......@@ -34,7 +34,7 @@ function c85401480.initial_effect(c)
local e4=Effect.CreateEffect(c)
e4:SetDescription(aux.Stringid(85401480,1))
e4:SetCategory(CATEGORY_SEARCH)
e4:SetProperty(EFFECT_CANNOT_DISABLE+EFFECT_CANNOT_INACTIVATE)
e4:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_CANNOT_INACTIVATE)
e4:SetType(EFFECT_TYPE_IGNITION)
e4:SetRange(LOCATION_MZONE)
e4:SetCountLimit(1,85401480+EFFECT_COUNT_CODE_DUEL)
......@@ -70,12 +70,12 @@ function c85401480.gllq(c,e)
end
function c85401480.tg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsControler(1-tp) and chkc:IsLocation(LOCATION_MZONE) and c85401480.gllq(chkc) end
if chk==0 then return Duel.IsExistingMatchingCard(c85401480.gllq,tp,0,LOCATION_MZONE,1,nil,e) end
if chk==0 then return Duel.IsExistingTarget(c85401480.gllq,tp,0,LOCATION_MZONE,1,nil,e) end
Duel.SetOperationInfo(0,CATEGORY_DESTROY,nil,1,0,0)
end
function c85401480.op(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local g=Duel.SelectMatchingCard(tp,c85401480.gllq,tp,0,LOCATION_MZONE,1,1,nil,e)
local g=Duel.SelectTarget(tp,c85401480.gllq,tp,0,LOCATION_MZONE,1,1,nil,e)
if g:GetCount()>0 then
Duel.Destroy(g,REASON_EFFECT)
end
......@@ -84,11 +84,11 @@ function c85401480.tgg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
end
function c85401480.opp(e,tp,eg,ep,ev,re,r,rp)
Duel.Damage(tp,600,REASON_EFFECT)
Duel.Damage(tp,800,REASON_EFFECT)
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_UPDATE_ATTACK)
e1:SetValue(1000)
e1:SetValue(1200)
e1:SetReset(RESET_EVENT+RESET_PHASE+PHASE_END)
c:RegisterEffect(e1)
end
......
......@@ -88,12 +88,12 @@ function c85401660.gllq(c,e)
end
function c85401660.tg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsControler(1-tp) and chkc:IsLocation(LOCATION_MZONE) and c85401660.gllq(chkc) end
if chk==0 then return Duel.IsExistingMatchingCard(c85401660.gllq,tp,0,LOCATION_MZONE,1,nil,e) end
if chk==0 then return Duel.IsExistingTarget(c85401660.gllq,tp,0,LOCATION_MZONE,1,nil,e) end
Duel.SetOperationInfo(0,CATEGORY_DESTROY,nil,1,0,0)
end
function c85401660.op(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local g=Duel.SelectMatchingCard(tp,c85401660.gllq,tp,0,LOCATION_MZONE,1,1,nil,e)
local g=Duel.SelectTarget(tp,c85401660.gllq,tp,0,LOCATION_MZONE,1,1,nil,e)
if g:GetCount()>0 then
Duel.Destroy(g,REASON_EFFECT)
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