Commit 6a80afe2 authored by Tachibana's avatar Tachibana

ndyd

parent e6b585fa
...@@ -32,7 +32,7 @@ function c71400001.cost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -32,7 +32,7 @@ function c71400001.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.PayLPCost(tp,500) Duel.PayLPCost(tp,500)
end end
function c71400001.activate1(e,tp,eg,ep,ev,re,r,rp) function c71400001.activate1(e,tp,eg,ep,ev,re,r,rp)
yume.ActivateYumeField(tp,nil,1) yume.ActivateYumeField(e,tp,nil,1)
end end
function c71400001.activate2(e,tp,eg,ep,ev,re,r,rp) function c71400001.activate2(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
...@@ -242,7 +242,7 @@ function yume.YumeFieldCheckTarget(id,ft,loc) ...@@ -242,7 +242,7 @@ function yume.YumeFieldCheckTarget(id,ft,loc)
if not Duel.CheckPhaseActivity() then e:SetLabel(1) else e:SetLabel(0) end if not Duel.CheckPhaseActivity() then e:SetLabel(1) else e:SetLabel(0) end
end end
end end
function yume.ActivateYumeField(tp,id,ft,loc) function yume.ActivateYumeField(e,tp,id,ft,loc)
ft=ft or 0 ft=ft or 0
id=id or 0 id=id or 0
loc=loc or LOCATION_DECK loc=loc or LOCATION_DECK
...@@ -287,7 +287,7 @@ function yume.ActivateFieldOp(e,tp,eg,ep,ev,re,r,rp) ...@@ -287,7 +287,7 @@ function yume.ActivateFieldOp(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local id=yume.temp_card_field[c].id local id=yume.temp_card_field[c].id
local ft=yume.temp_card_field[c].ft local ft=yume.temp_card_field[c].ft
yume.ActivateYumeField(tp,id,ft,LOCATION_DECK+LOCATION_HAND) yume.ActivateYumeField(e,tp,id,ft,LOCATION_DECK+LOCATION_HAND)
end end
--uniquify the same name --uniquify the same name
function yume.UniquifyCardName(g) function yume.UniquifyCardName(g)
......
...@@ -41,7 +41,7 @@ function c71400013.filter2(c) ...@@ -41,7 +41,7 @@ function c71400013.filter2(c)
end end
function c71400013.op1(e,tp,eg,ep,ev,re,r,rp) function c71400013.op1(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local tc=yume.ActivateYumeField(tp,nil,1) local tc=yume.ActivateYumeField(e,tp,nil,1)
local dg=Duel.GetMatchingGroup(c71400013.filter1a,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,nil) local dg=Duel.GetMatchingGroup(c71400013.filter1a,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,nil)
if tc and dg:GetCount()>0 and Duel.SelectYesNo(tp,aux.Stringid(71400013,3)) then if tc and dg:GetCount()>0 and Duel.SelectYesNo(tp,aux.Stringid(71400013,3)) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
...@@ -50,6 +50,7 @@ function c71400013.op1(e,tp,eg,ep,ev,re,r,rp) ...@@ -50,6 +50,7 @@ function c71400013.op1(e,tp,eg,ep,ev,re,r,rp)
Duel.BreakEffect() Duel.BreakEffect()
Duel.SendtoGrave(des,REASON_EFFECT) Duel.SendtoGrave(des,REASON_EFFECT)
end end
--[[
local el1=Effect.CreateEffect(c) local el1=Effect.CreateEffect(c)
el1:SetProperty(EFFECT_FLAG_PLAYER_TARGET) el1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
el1:SetType(EFFECT_TYPE_FIELD) el1:SetType(EFFECT_TYPE_FIELD)
...@@ -64,6 +65,7 @@ function c71400013.op1(e,tp,eg,ep,ev,re,r,rp) ...@@ -64,6 +65,7 @@ function c71400013.op1(e,tp,eg,ep,ev,re,r,rp)
local el3=el1:Clone() local el3=el1:Clone()
el3:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON) el3:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON)
c:RegisterEffect(el3) c:RegisterEffect(el3)
--]]
end end
function c71400013.op2(e,tp,eg,ep,ev,re,r,rp) function c71400013.op2(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -25,6 +25,7 @@ end ...@@ -25,6 +25,7 @@ end
function c71400020.tg1(e,tp,eg,ep,ev,re,r,rp,chk) function c71400020.tg1(e,tp,eg,ep,ev,re,r,rp,chk)
local g=Duel.GetMatchingGroup(Card.IsAbleToRemove,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,e:GetHandler(),tp,POS_FACEDOWN) local g=Duel.GetMatchingGroup(Card.IsAbleToRemove,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,e:GetHandler(),tp,POS_FACEDOWN)
if chk==0 then return yume.YumeFieldCheckTarget(0,1,LOCATION_DECK+LOCATION_GRAVE+LOCATION_HAND) and g:GetCount()>0 end if chk==0 then return yume.YumeFieldCheckTarget(0,1,LOCATION_DECK+LOCATION_GRAVE+LOCATION_HAND) and g:GetCount()>0 end
if not Duel.CheckPhaseActivity() then e:SetLabel(1) else e:SetLabel(0) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,0,tp,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,0,tp,0)
Duel.SetOperationInfo(0,CATEGORY_REMOVE,g,g:GetCount(),0,0) Duel.SetOperationInfo(0,CATEGORY_REMOVE,g,g:GetCount(),0,0)
if e:IsHasType(EFFECT_TYPE_ACTIVATE) then if e:IsHasType(EFFECT_TYPE_ACTIVATE) then
...@@ -33,7 +34,7 @@ function c71400020.tg1(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -33,7 +34,7 @@ function c71400020.tg1(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function c71400020.op1(e,tp,eg,ep,ev,re,r,rp) function c71400020.op1(e,tp,eg,ep,ev,re,r,rp)
local rg=Duel.GetMatchingGroup(Card.IsAbleToRemove,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,aux.ExceptThisCard(e),tp,POS_FACEDOWN) local rg=Duel.GetMatchingGroup(Card.IsAbleToRemove,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,aux.ExceptThisCard(e),tp,POS_FACEDOWN)
if Duel.Remove(rg,POS_FACEDOWN,REASON_EFFECT)>0 and yume.ActivateYumeField(tp,0,1,LOCATION_DECK+LOCATION_GRAVE+LOCATION_HAND) then if Duel.Remove(rg,POS_FACEDOWN,REASON_EFFECT)>0 and yume.ActivateYumeField(e,tp,0,1,LOCATION_DECK+LOCATION_GRAVE+LOCATION_HAND) then
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
if ft<=0 then return end if ft<=0 then return end
if Duel.IsPlayerAffectedByEffect(tp,59822133) then ft=1 end if Duel.IsPlayerAffectedByEffect(tp,59822133) then ft=1 end
......
...@@ -41,7 +41,7 @@ function c71400023.filter1(c,tp) ...@@ -41,7 +41,7 @@ function c71400023.filter1(c,tp)
end end
function c71400023.op1(e,tp,eg,ep,ev,re,r,rp) function c71400023.op1(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local tc=yume.ActivateYumeField(tp) local tc=yume.ActivateYumeField(e,tp)
if tc then if tc then
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(71400023,2)) e1:SetDescription(aux.Stringid(71400023,2))
......
...@@ -28,14 +28,14 @@ function c71400025.initial_effect(c) ...@@ -28,14 +28,14 @@ function c71400025.initial_effect(c)
Duel.AddCustomActivityCounter(71400025,ACTIVITY_SPSUMMON,c71400025.counterfilter) Duel.AddCustomActivityCounter(71400025,ACTIVITY_SPSUMMON,c71400025.counterfilter)
end end
function c71400025.counterfilter(c) function c71400025.counterfilter(c)
return c:GetSummonLocation()~=LOCATION_EXTRA or c:IsType(TYPE_LINK) return c:GetSummonLocation()~=LOCATION_EXTRA or c:IsType(TYPE_LINK) and c:IsSetCard(0x714)
end end
function c71400025.cost1(e,tp,eg,ep,ev,re,r,rp,chk) function c71400025.cost1(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckLPCost(tp,800) end if chk==0 then return Duel.CheckLPCost(tp,800) end
Duel.PayLPCost(tp,800) Duel.PayLPCost(tp,800)
end end
function c71400025.op1(e,tp,eg,ep,ev,re,r,rp) function c71400025.op1(e,tp,eg,ep,ev,re,r,rp)
yume.ActivateYumeField(tp,nil,2) yume.ActivateYumeField(e,tp,nil,2)
end end
function c71400025.filter2(c) function c71400025.filter2(c)
return c:IsType(TYPE_LINK) return c:IsType(TYPE_LINK)
...@@ -56,7 +56,7 @@ function c71400025.cost2(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -56,7 +56,7 @@ function c71400025.cost2(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e1,tp)
end end
function c71400025.splimit(e,c,sump,sumtype,sumpos,targetp,se) function c71400025.splimit(e,c,sump,sumtype,sumpos,targetp,se)
return not (c:IsType(TYPE_LINK)) and c:IsLocation(LOCATION_EXTRA) return not (c:IsType(TYPE_LINK) and c:IsSetCard(0x714)) and c:IsLocation(LOCATION_EXTRA)
end end
function c71400025.tg2(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c71400025.tg2(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsType(TYPE_LINK) and chkc:IsLocation(LOCATION_MZONE) end if chkc then return chkc:IsType(TYPE_LINK) and chkc:IsLocation(LOCATION_MZONE) end
......
...@@ -52,7 +52,7 @@ function c71400035.tg1(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -52,7 +52,7 @@ function c71400035.tg1(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function c71400035.op1(e,tp,eg,ep,ev,re,r,rp) function c71400035.op1(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
yume.ActivateYumeField(tp,0,0,LOCATION_DECK+LOCATION_REMOVED) yume.ActivateYumeField(e,tp,0,0,LOCATION_DECK+LOCATION_REMOVED)
if Duel.GetFieldGroupCount(tp,0,LOCATION_ONFIELD)>Duel.GetFieldGroupCount(tp,LOCATION_ONFIELD,0) then if Duel.GetFieldGroupCount(tp,0,LOCATION_ONFIELD)>Duel.GetFieldGroupCount(tp,LOCATION_ONFIELD,0) then
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD) e1:SetType(EFFECT_TYPE_FIELD)
......
...@@ -92,7 +92,7 @@ function c71400043.op2(e,tp,eg,ep,ev,re,r,rp) ...@@ -92,7 +92,7 @@ function c71400043.op2(e,tp,eg,ep,ev,re,r,rp)
local fc=Duel.GetFieldCard(tp,LOCATION_FZONE,0) local fc=Duel.GetFieldCard(tp,LOCATION_FZONE,0)
local id=0 local id=0
if fc and fc:IsFaceup() then id=fc:GetCode() end if fc and fc:IsFaceup() then id=fc:GetCode() end
yume.ActivateYumeField(tp,id,2,LOCATION_GRAVE+LOCATION_DECK) yume.ActivateYumeField(e,tp,id,2,LOCATION_GRAVE+LOCATION_DECK)
end end
function c71400043.con3(e,tp,eg,ep,ev,re,r,rp) function c71400043.con3(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetFlagEffect(tp,71400038)>0 return Duel.GetFlagEffect(tp,71400038)>0
......
...@@ -32,10 +32,11 @@ function c71400053.cost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -32,10 +32,11 @@ function c71400053.cost(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function c71400053.tg1(e,tp,eg,ep,ev,re,r,rp,chk) function c71400053.tg1(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return yume.YumeFieldCheck(tp,0,2) end if chk==0 then return yume.YumeFieldCheck(tp,0,2) end
if not Duel.CheckPhaseActivity() then e:SetLabel(1) else e:SetLabel(0) end
Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,tp,1) Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,tp,1)
end end
function c71400053.op1(e,tp,eg,ep,ev,re,r,rp) function c71400053.op1(e,tp,eg,ep,ev,re,r,rp)
if yume.ActivateYumeField(tp,nil,2) then if yume.ActivateYumeField(e,tp,nil,2) then
Duel.BreakEffect() Duel.BreakEffect()
local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM)
Duel.Draw(p,d,REASON_EFFECT) Duel.Draw(p,d,REASON_EFFECT)
......
...@@ -58,7 +58,7 @@ function c71400056.tg1(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -58,7 +58,7 @@ function c71400056.tg1(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function c71400056.op1(e,tp,eg,ep,ev,re,r,rp) function c71400056.op1(e,tp,eg,ep,ev,re,r,rp)
if not Duel.NegateEffect(ev) then return end if not Duel.NegateEffect(ev) then return end
if yume.ActivateYumeField(tp,0,0,LOCATION_HAND+LOCATION_GRAVE) and not e:GetHandler():IsStatus(STATUS_ACT_FROM_HAND) and e:IsHasType(EFFECT_TYPE_ACTIVATE) then if yume.ActivateYumeField(e,tp,0,0,LOCATION_HAND+LOCATION_GRAVE) and not e:GetHandler():IsStatus(STATUS_ACT_FROM_HAND) and e:IsHasType(EFFECT_TYPE_ACTIVATE) then
Duel.DiscardDeck(tp,3,REASON_EFFECT) Duel.DiscardDeck(tp,3,REASON_EFFECT)
end end
end end
......
...@@ -84,6 +84,7 @@ function c71402000.eftg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -84,6 +84,7 @@ function c71402000.eftg(e,tp,eg,ep,ev,re,r,rp,chk)
e1:SetTarget(c71402000.splimit) e1:SetTarget(c71402000.splimit)
e1:SetReset(RESET_PHASE+PHASE_END) e1:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e1,tp)
if not Duel.CheckPhaseActivity() then e:SetLabel(1) else e:SetLabel(0) end
Duel.SetOperationInfo(0,CATEGORY_DICE,nil,0,tp,1) Duel.SetOperationInfo(0,CATEGORY_DICE,nil,0,tp,1)
end end
function c71402000.spcon(e,tp,eg,ep,ev,re,r,rp) function c71402000.spcon(e,tp,eg,ep,ev,re,r,rp)
...@@ -110,7 +111,7 @@ function c71402000.filter3(c) ...@@ -110,7 +111,7 @@ function c71402000.filter3(c)
end end
function c71402000.efop(e,tp,eg,ep,ev,re,r,rp) function c71402000.efop(e,tp,eg,ep,ev,re,r,rp)
local dc=Duel.TossDice(tp,1) local dc=Duel.TossDice(tp,1)
if dc==1 then yume.ActivateYumeField(tp) if dc==1 then yume.ActivateYumeField(e,tp)
elseif dc==2 then elseif dc==2 then
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
...@@ -121,7 +122,7 @@ function c71402000.efop(e,tp,eg,ep,ev,re,r,rp) ...@@ -121,7 +122,7 @@ function c71402000.efop(e,tp,eg,ep,ev,re,r,rp)
elseif dc==3 then elseif dc==3 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g=Duel.SelectMatchingCard(tp,c71402000.filter2,tp,LOCATION_DECK,0,1,1,nil) local g=Duel.SelectMatchingCard(tp,c71402000.filter2,tp,LOCATION_DECK,0,1,1,nil)
if g:GetCount()>0 then Duel.SendtoGrave(g,REASON_EFFECT) end if g:GetCount()>0 then Duel.SendtoGrave(g,REASON_EFFECT)>0 end
elseif dc==4 then elseif dc==4 then
local thg=Duel.GetMatchingGroup(c71402000.filter3,tp,LOCATION_GRAVE,0,nil) local thg=Duel.GetMatchingGroup(c71402000.filter3,tp,LOCATION_GRAVE,0,nil)
if thg:GetCount()>0 if thg:GetCount()>0
......
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