Commit 63043605 authored by TanakaKotoha's avatar TanakaKotoha

sjb

parent 50cdbbfb
No preview for this file type
...@@ -29,10 +29,25 @@ function c60150810.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -29,10 +29,25 @@ function c60150810.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.SendtoHand(g,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,g) Duel.ConfirmCards(1-tp,g)
local tc=Duel.GetFieldCard(tp,LOCATION_DECK,0) local tc=Duel.GetFieldCard(tp,LOCATION_DECK,0)
if tc:IsAbleToRemove() and Duel.SelectYesNo(tp,aux.Stringid(60150810,0)) then local tc2=Duel.GetFieldCard(tp,0,LOCATION_DECK)
if (tc:IsAbleToRemove() and tc2:IsAbleToRemove()) and Duel.SelectYesNo(tp,aux.Stringid(60150810,0)) then
if Duel.SelectYesNo(tp,aux.Stringid(60150810,1)) then
Duel.BreakEffect()
Duel.DisableShuffleCheck()
Duel.Remove(tc2,POS_FACEUP,REASON_EFFECT)
else
Duel.BreakEffect()
Duel.DisableShuffleCheck()
Duel.Remove(tc,POS_FACEUP,REASON_EFFECT)
end
elseif (tc:IsAbleToRemove() and not tc2:IsAbleToRemove()) and Duel.SelectYesNo(tp,aux.Stringid(60150810,0)) then
Duel.BreakEffect() Duel.BreakEffect()
Duel.DisableShuffleCheck() Duel.DisableShuffleCheck()
Duel.Remove(tc,POS_FACEUP,REASON_EFFECT) Duel.Remove(tc,POS_FACEUP,REASON_EFFECT)
elseif (not tc:IsAbleToRemove() and tc2:IsAbleToRemove()) and Duel.SelectYesNo(tp,aux.Stringid(60150810,0)) then
Duel.BreakEffect()
Duel.DisableShuffleCheck()
Duel.Remove(tc2,POS_FACEUP,REASON_EFFECT)
end end
end end
end end
\ No newline at end of file
...@@ -11,16 +11,16 @@ function c60150811.initial_effect(c) ...@@ -11,16 +11,16 @@ function c60150811.initial_effect(c)
e1:SetOperation(c60150811.spop) e1:SetOperation(c60150811.spop)
c:RegisterEffect(e1) c:RegisterEffect(e1)
-- --
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetCategory(CATEGORY_REMOVE) e2:SetCategory(CATEGORY_REMOVE)
e2:SetType(EFFECT_TYPE_QUICK_O) e2:SetType(EFFECT_TYPE_QUICK_O)
e2:SetRange(LOCATION_GRAVE) e2:SetRange(LOCATION_GRAVE)
e2:SetCode(EVENT_FREE_CHAIN) e2:SetCode(EVENT_FREE_CHAIN)
e2:SetCondition(aux.exccon) e2:SetCondition(aux.exccon)
e2:SetCost(aux.bfgcost) e2:SetCost(aux.bfgcost)
e2:SetTarget(c60150811.target) e2:SetTarget(c60150811.target)
e2:SetOperation(c60150811.activate2) e2:SetOperation(c60150811.activate2)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c60150811.spfilter(c,e,tp) function c60150811.spfilter(c,e,tp)
return c:IsSetCard(0x3b23) and c:IsAttribute(ATTRIBUTE_DARK) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:IsFaceup() return c:IsSetCard(0x3b23) and c:IsAttribute(ATTRIBUTE_DARK) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:IsFaceup()
...@@ -60,6 +60,27 @@ function c60150811.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -60,6 +60,27 @@ function c60150811.spop(e,tp,eg,ep,ev,re,r,rp)
e2:SetOperation(c60150811.tdop) e2:SetOperation(c60150811.tdop)
e2:SetReset(RESET_PHASE+PHASE_END+RESET_SELF_TURN,2) e2:SetReset(RESET_PHASE+PHASE_END+RESET_SELF_TURN,2)
Duel.RegisterEffect(e2,tp) Duel.RegisterEffect(e2,tp)
local tc3=Duel.GetFieldCard(tp,LOCATION_DECK,0)
local tc2=Duel.GetFieldCard(tp,0,LOCATION_DECK)
if (tc3:IsAbleToRemove() and tc2:IsAbleToRemove()) and Duel.SelectYesNo(tp,aux.Stringid(60150810,0)) then
if Duel.SelectYesNo(tp,aux.Stringid(60150810,1)) then
Duel.BreakEffect()
Duel.DisableShuffleCheck()
Duel.Remove(tc2,POS_FACEUP,REASON_EFFECT)
else
Duel.BreakEffect()
Duel.DisableShuffleCheck()
Duel.Remove(tc3,POS_FACEUP,REASON_EFFECT)
end
elseif (tc3:IsAbleToRemove() and not tc2:IsAbleToRemove()) and Duel.SelectYesNo(tp,aux.Stringid(60150810,0)) then
Duel.BreakEffect()
Duel.DisableShuffleCheck()
Duel.Remove(tc3,POS_FACEUP,REASON_EFFECT)
elseif (not tc3:IsAbleToRemove() and tc2:IsAbleToRemove()) and Duel.SelectYesNo(tp,aux.Stringid(60150810,0)) then
Duel.BreakEffect()
Duel.DisableShuffleCheck()
Duel.Remove(tc2,POS_FACEUP,REASON_EFFECT)
end
end end
end end
function c60150811.valcon(e,re,r,rp) function c60150811.valcon(e,re,r,rp)
...@@ -74,16 +95,16 @@ function c60150811.tdop(e,tp,eg,ep,ev,re,r,rp) ...@@ -74,16 +95,16 @@ function c60150811.tdop(e,tp,eg,ep,ev,re,r,rp)
Duel.SendtoDeck(tc,nil,2,REASON_EFFECT) Duel.SendtoDeck(tc,nil,2,REASON_EFFECT)
end end
function c60150811.tgfilter(c) function c60150811.tgfilter(c)
return c:IsAbleToRemove() return c:IsAbleToRemove()
end end
function c60150811.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c60150811.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chk==0 then return Duel.IsExistingMatchingCard(c60150811.tgfilter,tp,LOCATION_DECK,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c60150811.tgfilter,tp,LOCATION_DECK,0,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_REMOVE,nil,1,tp,LOCATION_DECK) Duel.SetOperationInfo(0,CATEGORY_REMOVE,nil,1,tp,LOCATION_DECK)
end end
function c60150811.activate2(e,tp,eg,ep,ev,re,r,rp) function c60150811.activate2(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local g=Duel.SelectMatchingCard(tp,c60150811.tgfilter,tp,LOCATION_DECK,0,1,1,nil) local g=Duel.SelectMatchingCard(tp,c60150811.tgfilter,tp,LOCATION_DECK,0,1,1,nil)
if g:GetCount()>0 then if g:GetCount()>0 then
Duel.Remove(g,POS_FACEUP,REASON_EFFECT) Duel.Remove(g,POS_FACEUP,REASON_EFFECT)
end end
end end
\ No newline at end of file
...@@ -53,5 +53,26 @@ function c60150812.activate2(e,tp,eg,ep,ev,re,r,rp) ...@@ -53,5 +53,26 @@ function c60150812.activate2(e,tp,eg,ep,ev,re,r,rp)
elseif tc:IsAbleToRemove() and not tc:IsAbleToGrave() then elseif tc:IsAbleToRemove() and not tc:IsAbleToGrave() then
Duel.Remove(tc,POS_FACEDOWN,REASON_EFFECT) Duel.Remove(tc,POS_FACEDOWN,REASON_EFFECT)
end end
local tc3=Duel.GetFieldCard(tp,LOCATION_DECK,0)
local tc2=Duel.GetFieldCard(tp,0,LOCATION_DECK)
if (tc3:IsAbleToRemove() and tc2:IsAbleToRemove()) and Duel.SelectYesNo(tp,aux.Stringid(60150810,0)) then
if Duel.SelectYesNo(tp,aux.Stringid(60150810,1)) then
Duel.BreakEffect()
Duel.DisableShuffleCheck()
Duel.Remove(tc2,POS_FACEUP,REASON_EFFECT)
else
Duel.BreakEffect()
Duel.DisableShuffleCheck()
Duel.Remove(tc3,POS_FACEUP,REASON_EFFECT)
end
elseif (tc3:IsAbleToRemove() and not tc2:IsAbleToRemove()) and Duel.SelectYesNo(tp,aux.Stringid(60150810,0)) then
Duel.BreakEffect()
Duel.DisableShuffleCheck()
Duel.Remove(tc3,POS_FACEUP,REASON_EFFECT)
elseif (not tc3:IsAbleToRemove() and tc2:IsAbleToRemove()) and Duel.SelectYesNo(tp,aux.Stringid(60150810,0)) then
Duel.BreakEffect()
Duel.DisableShuffleCheck()
Duel.Remove(tc2,POS_FACEUP,REASON_EFFECT)
end
end end
end end
--爱莎-窒息的痛楚 --爱莎-窒息的痛楚
function c60150817.initial_effect(c) function c60150817.initial_effect(c)
--special summon --special summon
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD) e2:SetType(EFFECT_TYPE_FIELD)
e2:SetCode(EFFECT_SPSUMMON_PROC) e2:SetCode(EFFECT_SPSUMMON_PROC)
e2:SetProperty(EFFECT_FLAG_UNCOPYABLE) e2:SetProperty(EFFECT_FLAG_UNCOPYABLE)
e2:SetRange(LOCATION_HAND) e2:SetRange(LOCATION_HAND)
e2:SetCondition(c60150817.spcon) e2:SetCondition(c60150817.spcon)
e2:SetOperation(c60150817.spop) e2:SetOperation(c60150817.spop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
--spsummon --spsummon
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(60150817,1)) e1:SetDescription(aux.Stringid(60150817,1))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_REMOVE) e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_REMOVE)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetCode(EVENT_SPSUMMON_SUCCESS) e1:SetCode(EVENT_SPSUMMON_SUCCESS)
e1:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_DAMAGE_STEP) e1:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_DAMAGE_STEP)
e1:SetCountLimit(1,60150817) e1:SetCountLimit(1,60150817)
e1:SetCondition(c60150817.rmcon) e1:SetCondition(c60150817.rmcon)
e1:SetTarget(c60150817.sptg2) e1:SetTarget(c60150817.sptg2)
e1:SetOperation(c60150817.spop2) e1:SetOperation(c60150817.spop2)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c60150817.spcon(e,c) function c60150817.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 return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingMatchingCard(Card.IsAbleToDeckOrExtraAsCost,tp,LOCATION_REMOVED,LOCATION_REMOVED,2,nil) and Duel.IsExistingMatchingCard(Card.IsAbleToDeckOrExtraAsCost,tp,LOCATION_REMOVED,LOCATION_REMOVED,2,nil)
end end
function c60150817.spop(e,tp,eg,ep,ev,re,r,rp,c) function c60150817.spop(e,tp,eg,ep,ev,re,r,rp,c)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
local g=Duel.SelectMatchingCard(tp,Card.IsAbleToDeckOrExtraAsCost,tp,LOCATION_REMOVED,LOCATION_REMOVED,2,2,nil) local g=Duel.SelectMatchingCard(tp,Card.IsAbleToDeckOrExtraAsCost,tp,LOCATION_REMOVED,LOCATION_REMOVED,2,2,nil)
Duel.SendtoDeck(g,nil,2,REASON_COST) Duel.SendtoDeck(g,nil,2,REASON_COST)
end end
function c60150817.filter(c,e,tp) function c60150817.filter(c,e,tp)
return c:IsSetCard(0x3b23) and c:IsType(TYPE_MONSTER) and c:IsAttribute(ATTRIBUTE_DARK) return c:IsSetCard(0x3b23) and c:IsType(TYPE_MONSTER) and c:IsAttribute(ATTRIBUTE_DARK)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c60150817.rmcon(e,tp,eg,ep,ev,re,r,rp) function c60150817.rmcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsPreviousLocation(LOCATION_GRAVE+LOCATION_REMOVED) return e:GetHandler():IsPreviousLocation(LOCATION_GRAVE+LOCATION_REMOVED)
end end
function c60150817.afilter(c) function c60150817.afilter(c)
return c:IsAbleToRemove() return c:IsAbleToRemove()
end end
function c60150817.sptg2(e,tp,eg,ep,ev,re,r,rp,chk) function c60150817.sptg2(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
and Duel.IsExistingMatchingCard(c60150817.filter,tp,LOCATION_DECK,0,1,nil,e,tp) end and Duel.IsExistingMatchingCard(c60150817.filter,tp,LOCATION_DECK,0,1,nil,e,tp) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK)
local g=Duel.GetMatchingGroup(c60150817.afilter,tp,LOCATION_DECK,0,nil) local g=Duel.GetMatchingGroup(c60150817.afilter,tp,LOCATION_DECK,0,nil)
Duel.SetOperationInfo(0,CATEGORY_REMOVE,g,1,0,0) Duel.SetOperationInfo(0,CATEGORY_REMOVE,g,1,0,0)
end end
function c60150817.spop2(e,tp,eg,ep,ev,re,r,rp) function c60150817.spop2(e,tp,eg,ep,ev,re,r,rp)
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)
local g=Duel.SelectMatchingCard(tp,c60150817.filter,tp,LOCATION_DECK,0,1,1,nil,e,tp) local g=Duel.SelectMatchingCard(tp,c60150817.filter,tp,LOCATION_DECK,0,1,1,nil,e,tp)
if g:GetCount()>0 then if g:GetCount()>0 then
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)
local tc=Duel.GetFieldCard(tp,LOCATION_DECK,0) local tc=Duel.GetFieldCard(tp,LOCATION_DECK,0)
if tc:IsAbleToRemove() and Duel.SelectYesNo(tp,aux.Stringid(60150810,0)) then local tc2=Duel.GetFieldCard(tp,0,LOCATION_DECK)
Duel.BreakEffect() if (tc:IsAbleToRemove() and tc2:IsAbleToRemove()) and Duel.SelectYesNo(tp,aux.Stringid(60150810,0)) then
Duel.DisableShuffleCheck() if Duel.SelectYesNo(tp,aux.Stringid(60150810,1)) then
Duel.Remove(tc,POS_FACEUP,REASON_EFFECT) Duel.BreakEffect()
end Duel.DisableShuffleCheck()
end Duel.Remove(tc2,POS_FACEUP,REASON_EFFECT)
else
Duel.BreakEffect()
Duel.DisableShuffleCheck()
Duel.Remove(tc,POS_FACEUP,REASON_EFFECT)
end
elseif (tc:IsAbleToRemove() and not tc2:IsAbleToRemove()) and Duel.SelectYesNo(tp,aux.Stringid(60150810,0)) then
Duel.BreakEffect()
Duel.DisableShuffleCheck()
Duel.Remove(tc,POS_FACEUP,REASON_EFFECT)
elseif (not tc:IsAbleToRemove() and tc2:IsAbleToRemove()) and Duel.SelectYesNo(tp,aux.Stringid(60150810,0)) then
Duel.BreakEffect()
Duel.DisableShuffleCheck()
Duel.Remove(tc2,POS_FACEUP,REASON_EFFECT)
end
end
end end
\ No newline at end of file
...@@ -39,10 +39,25 @@ function c60150819.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -39,10 +39,25 @@ function c60150819.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.SendtoHand(tc,nil,REASON_EFFECT) Duel.SendtoHand(tc,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,tc) Duel.ConfirmCards(1-tp,tc)
local tc=Duel.GetFieldCard(tp,LOCATION_DECK,0) local tc=Duel.GetFieldCard(tp,LOCATION_DECK,0)
if tc:IsAbleToRemove() and Duel.SelectYesNo(tp,aux.Stringid(60150810,0)) then local tc2=Duel.GetFieldCard(tp,0,LOCATION_DECK)
if (tc:IsAbleToRemove() and tc2:IsAbleToRemove()) and Duel.SelectYesNo(tp,aux.Stringid(60150810,0)) then
if Duel.SelectYesNo(tp,aux.Stringid(60150810,1)) then
Duel.BreakEffect()
Duel.DisableShuffleCheck()
Duel.Remove(tc2,POS_FACEUP,REASON_EFFECT)
else
Duel.BreakEffect()
Duel.DisableShuffleCheck()
Duel.Remove(tc,POS_FACEUP,REASON_EFFECT)
end
elseif (tc:IsAbleToRemove() and not tc2:IsAbleToRemove()) and Duel.SelectYesNo(tp,aux.Stringid(60150810,0)) then
Duel.BreakEffect() Duel.BreakEffect()
Duel.DisableShuffleCheck() Duel.DisableShuffleCheck()
Duel.Remove(tc,POS_FACEUP,REASON_EFFECT) Duel.Remove(tc,POS_FACEUP,REASON_EFFECT)
elseif (not tc:IsAbleToRemove() and tc2:IsAbleToRemove()) and Duel.SelectYesNo(tp,aux.Stringid(60150810,0)) then
Duel.BreakEffect()
Duel.DisableShuffleCheck()
Duel.Remove(tc2,POS_FACEUP,REASON_EFFECT)
end end
end end
end end
\ No newline at end of file
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