Commit 223e25cd authored by POLYMER's avatar POLYMER

fix

parent 6ee9b657
...@@ -1167,25 +1167,17 @@ ...@@ -1167,25 +1167,17 @@
71000102 0 71000102 0
71000103 0 71000103 0
71000104 0 71000104 0
71000106 0 71000106 1
71000107 0 71000107 0
71000108 0 71000108 1
71000109 0 71000109 1
71000110 0 71000110 1
71000111 0
71000112 0 71000112 0
71000113 0 71000113 0
71000114 0 71000114 0
71000115 0 71000115 0
71000116 0 71000116 0
71000117 0 71000117 0
71000171 0
71000172 0
71000173 0
71000174 0
71000175 0
71000176 0
71000177 0
71500005 0 71500005 0
71500006 0 71500006 0
71500016 0 71500016 0
...@@ -6447,25 +6439,17 @@ ...@@ -6447,25 +6439,17 @@
71000102 0 71000102 0
71000103 0 71000103 0
71000104 0 71000104 0
71000106 0 71000106 1
71000107 0 71000107 0
71000108 0 71000108 1
71000109 0 71000109 1
71000110 0 71000110 1
71000111 0
71000112 0 71000112 0
71000113 0 71000113 0
71000114 0 71000114 0
71000115 0 71000115 0
71000116 0 71000116 0
71000117 0 71000117 0
71000171 0
71000172 0
71000173 0
71000174 0
71000175 0
71000176 0
71000177 0
91010080 0 91010080 0
91011014 0 91011014 0
#limit #limit
......
No preview for this file type
No preview for this file type
--堕天的古之妖 漆黑幻想颂 --堕天的古之妖 漆黑幻想颂
function c28366277.initial_effect(c) function c28366277.initial_effect(c)
--same effect send this card to grave and summon another card check
local e0=aux.AddThisCardInGraveAlreadyCheck(c)
--Activate --Activate
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_SEARCH+CATEGORY_SPECIAL_SUMMON) e1:SetCategory(CATEGORY_SEARCH+CATEGORY_TOHAND)
e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN) e1:SetCode(EVENT_FREE_CHAIN)
e1:SetHintTiming(0,TIMING_DRAW_PHASE+TIMING_END_PHASE) e1:SetHintTiming(0,TIMING_DRAW_PHASE+TIMING_END_PHASE)
...@@ -18,6 +20,7 @@ function c28366277.initial_effect(c) ...@@ -18,6 +20,7 @@ function c28366277.initial_effect(c)
e2:SetCode(EVENT_SPSUMMON_SUCCESS) e2:SetCode(EVENT_SPSUMMON_SUCCESS)
e2:SetProperty(EFFECT_FLAG_DELAY) e2:SetProperty(EFFECT_FLAG_DELAY)
e2:SetRange(LOCATION_GRAVE) e2:SetRange(LOCATION_GRAVE)
e2:SetLabelObject(e0)
e2:SetCondition(c28366277.spcon) e2:SetCondition(c28366277.spcon)
e2:SetTarget(c28366277.sptg) e2:SetTarget(c28366277.sptg)
e2:SetOperation(c28366277.spop) e2:SetOperation(c28366277.spop)
...@@ -48,8 +51,9 @@ function c28366277.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -48,8 +51,9 @@ function c28366277.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)
if Duel.GetLP(tp)<=3000 and Duel.IsExistingMatchingCard(c28366277.thfilter,tp,LOCATION_DECK,0,1,nil) and Duel.SelectYesNo(tp,aux.Stringid(28366277,1)) then if Duel.GetLP(tp)<=3000 and Duel.IsExistingMatchingCard(c28366277.thfilter,tp,LOCATION_DECK,0,1,nil) and Duel.SelectYesNo(tp,aux.Stringid(28366277,1)) then
Duel.BreakEffect()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local g=Duel.SelectMatchingCard(tp,c28366277.thfilter,tp,LOCATION_DECK,0,1,1,nil) local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(c28366277.thfilter),tp,LOCATION_DECK+LOCATION_GRAVE,0,1,1,nil)
Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.SendtoHand(g,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,g) Duel.ConfirmCards(1-tp,g)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
......
...@@ -122,9 +122,11 @@ function c28384553.dsop(e,tp,eg,ep,ev,re,r,rp) ...@@ -122,9 +122,11 @@ function c28384553.dsop(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(Card.IsFaceup,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,nil) local g=Duel.GetMatchingGroup(Card.IsFaceup,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,nil)
if ct>0 and #g>0 then if ct>0 and #g>0 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local dg=g:Select(tp,1,ct,nil) local sg=g:Select(tp,1,ct,nil)
Duel.HintSelection(dg) Duel.HintSelection(sg)
for sc in aux.Next(dg) do local dg=Group.CreateGroup()
for sc in aux.Next(sg) do
if sc:IsCanBeDisabledByEffect(e) then
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE) e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
...@@ -140,9 +142,11 @@ function c28384553.dsop(e,tp,eg,ep,ev,re,r,rp) ...@@ -140,9 +142,11 @@ function c28384553.dsop(e,tp,eg,ep,ev,re,r,rp)
sc:RegisterEffect(e2) sc:RegisterEffect(e2)
Duel.AdjustInstantly() Duel.AdjustInstantly()
Duel.NegateRelatedChain(sc,RESET_TURN_SET) Duel.NegateRelatedChain(sc,RESET_TURN_SET)
Duel.Destroy(sc,REASON_EFFECT) dg:AddCard(sc)
end end
end end
end
if dg:GetCount()==0 or Duel.Destroy(dg,REASON_EFFECT)==0 then return end
local lp=Duel.GetLP(tp) local lp=Duel.GetLP(tp)
local c=e:GetHandler() local c=e:GetHandler()
if c:IsRelateToEffect(e) and c:IsFaceup() and lp~=3000 and Duel.SelectYesNo(tp,aux.Stringid(28384553,1)) then if c:IsRelateToEffect(e) and c:IsFaceup() and lp~=3000 and Duel.SelectYesNo(tp,aux.Stringid(28384553,1)) then
......
...@@ -95,7 +95,7 @@ function c98941061.sptg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -95,7 +95,7 @@ function c98941061.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,c,1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,c,1,0,0)
end end
function c98941061.eqfilter(c,rc,e,tp,chk) function c98941061.eqfilter(c,rc,e,tp,chk)
return (c:IsRace(rc) or c:IsSetCard(0x179)) return (c:IsRace(rc) or c:IsSetCard(0x179)) and c:IsType(TYPE_MONSTER)
and Duel.GetLocationCount(tp,LOCATION_SZONE)>0 and c:CheckUniqueOnField(tp) and not c:IsForbidden() and Duel.GetLocationCount(tp,LOCATION_SZONE)>0 and c:CheckUniqueOnField(tp) and not c:IsForbidden()
end end
function c98941061.spop(e,tp,eg,ep,ev,re,r,rp) function c98941061.spop(e,tp,eg,ep,ev,re,r,rp)
......
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