Commit 15c6bd95 authored by TanakaKotoha's avatar TanakaKotoha

wdnmd

parent d1e46752
...@@ -2,6 +2,7 @@ local m=119007 ...@@ -2,6 +2,7 @@ local m=119007
local cm=_G["c"..m] local cm=_G["c"..m]
cm.name="带来死亡的神" cm.name="带来死亡的神"
function cm.initial_effect(c) function cm.initial_effect(c)
aux.AddCodeList(c,119006)
--Activate --Activate
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_REMOVE) e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_REMOVE)
......
...@@ -52,7 +52,7 @@ function Sr_skyland.speffect(c,code) ...@@ -52,7 +52,7 @@ function Sr_skyland.speffect(c,code)
return e2 return e2
end end
function Sr_skyland.spellthfilter(c) function Sr_skyland.spellthfilter(c)
return c:IsFaceup() and c:IsSetCard(0x133) and c:IsAbleToHand() return c:IsFaceup() and c:IsType(TYPE_MONSTER) and srre.check_set_SkyLand(c) and c:IsAbleToHand()
end end
function Sr_skyland.spelltg(e,tp,eg,ep,ev,re,r,rp,chk) function Sr_skyland.spelltg(e,tp,eg,ep,ev,re,r,rp,chk)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and Sr_skyland.spellthfilter(chkc) end if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and Sr_skyland.spellthfilter(chkc) end
...@@ -104,7 +104,18 @@ function Sr_skyland.commoneffect_spcon(e,c) ...@@ -104,7 +104,18 @@ function Sr_skyland.commoneffect_spcon(e,c)
and ( Duel.IsExistingMatchingCard(Sr_skyland.commoneffect_filter,tp,LOCATION_HAND,0,1,c) or Duel.IsExistingMatchingCard(Sr_skyland.exfilter,tp,LOCATION_MZONE,0,1,nil) ) and ( Duel.IsExistingMatchingCard(Sr_skyland.commoneffect_filter,tp,LOCATION_HAND,0,1,c) or Duel.IsExistingMatchingCard(Sr_skyland.exfilter,tp,LOCATION_MZONE,0,1,nil) )
end end
function Sr_skyland.commoneffect_spop(e,tp,eg,ep,ev,re,r,rp,c) function Sr_skyland.commoneffect_spop(e,tp,eg,ep,ev,re,r,rp,c)
if Duel.IsExistingMatchingCard(Sr_skyland.exfilter,tp,LOCATION_MZONE,0,1,nil) and Duel.SelectYesNo(tp,aux.Stringid(12066012,2)) then if Duel.IsExistingMatchingCard(Sr_skyland.exfilter,tp,LOCATION_MZONE,0,1,nil) and Duel.IsExistingMatchingCard(Sr_skyland.exfilter,tp,LOCATION_MZONE,0,1,nil) and Duel.SelectYesNo(tp,aux.Stringid(12066012,2)) then
local g=Duel.GetMatchingGroup(Sr_skyland.exfilter,tp,LOCATION_MZONE,0,nil)
if #g>1 then
Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(12066012,3))
local tg=g:Select(tp,1,1,nil)
tg:GetFirst():RemoveOverlayCard(tp,1,1,REASON_COST)
tg:GetFirst():RegisterFlagEffect(tp,12066012,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,0,1)
else
g:GetFirst():RemoveOverlayCard(tp,1,1,REASON_COST)
g:GetFirst():RegisterFlagEffect(tp,12066012,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,0,1)
end
elseif Duel.IsExistingMatchingCard(Sr_skyland.exfilter,tp,LOCATION_MZONE,0,1,nil) then
local g=Duel.GetMatchingGroup(Sr_skyland.exfilter,tp,LOCATION_MZONE,0,nil) local g=Duel.GetMatchingGroup(Sr_skyland.exfilter,tp,LOCATION_MZONE,0,nil)
if #g>1 then if #g>1 then
Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(12066012,3)) Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(12066012,3))
......
...@@ -19,7 +19,7 @@ function cm.filter(c) ...@@ -19,7 +19,7 @@ function cm.filter(c)
return srre.check_set_SkyLand(c) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand() return srre.check_set_SkyLand(c) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
end end
function cm.filter2(c,tp) function cm.filter2(c,tp)
return srre.check_set_SkyLand(c) and c:IsAbleToGrave() and Duel.IsExistingMatchingCard(Card.IsCode,tp,LOCATION_GRAVE,0,1,c,c:GetCode()) return srre.check_set_SkyLand(c) and c:IsAbleToGrave() and not Duel.IsExistingMatchingCard(Card.IsCode,tp,LOCATION_GRAVE,0,1,c,c:GetCode())
end end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk) function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.filter,tp,LOCATION_DECK,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(cm.filter,tp,LOCATION_DECK,0,1,nil) end
......
...@@ -2,6 +2,9 @@ ...@@ -2,6 +2,9 @@
local m=64800026 local m=64800026
local cm=_G["c"..m] local cm=_G["c"..m]
function cm.initial_effect(c) function cm.initial_effect(c)
--synchro summon
aux.AddSynchroProcedure(c,nil,aux.NonTuner(nil),1)
c:EnableReviveLimit()
--equip --equip
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(m,0)) e1:SetDescription(aux.Stringid(m,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