Commit 71f48b8e authored by POLYMER's avatar POLYMER

fix

parent 0299b704
......@@ -61,11 +61,11 @@ function c28316558.thop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if c:IsRelateToChain() and c:IsFaceup() then
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetDescription(aux.Stringid(28316149,1))
e1:SetDescription(aux.Stringid(28316558,1))
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_LEAVE_FIELD)
e1:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_CLIENT_HINT)
e1:SetOperation(c28316149.regop)
e1:SetOperation(c28316558.regop)
c:RegisterEffect(e1)
end
if Duel.GetLP(tp)<=3000 and Duel.IsExistingMatchingCard(c28316558.thfilter,tp,LOCATION_DECK,0,1,nil) and Duel.SelectYesNo(tp,aux.Stringid(28316558,2)) then
......@@ -77,15 +77,15 @@ function c28316558.thop(e,tp,eg,ep,ev,re,r,rp)
end
end
end
function c28316149.spfilter(c,e,p,code)
function c28316558.spfilter(c,e,p,code)
return c:IsCode(code) and c:IsCanBeSpecialSummoned(e,0,p,false,false)
end
function c28316149.regop(e,tp,eg,ep,ev,re,r,rp)
function c28316558.regop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local p=c:GetPreviousControler()
local g=Duel.GetMatchingGroup(c28316149.spfilter,p,LOCATION_GRAVE,0,nil,e,p,c:GetPreviousCodeOnField())
local g=Duel.GetMatchingGroup(c28316558.spfilter,p,LOCATION_GRAVE,0,nil,e,p,c:GetPreviousCodeOnField())
if c:IsReason(REASON_DESTROY) and #g>0 and Duel.GetMZoneCount(p)>0 then
Duel.Hint(HINT_CARD,0,28316149)
Duel.Hint(HINT_CARD,0,28316558)
Duel.Hint(HINT_SELECTMSG,p,HINTMSG_SPSUMMON)
local tc=g:Select(p,1,1,nil):GetFirst()
Duel.SpecialSummon(tc,0,p,p,false,false,POS_FACEUP)
......
......@@ -60,11 +60,11 @@ function c28317560.spop2(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if c:IsRelateToChain() and c:IsFaceup() then
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetDescription(aux.Stringid(28316149,1))
e1:SetDescription(aux.Stringid(28317560,1))
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_LEAVE_FIELD)
e1:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_CLIENT_HINT)
e1:SetOperation(c28316149.regop)
e1:SetOperation(c28317560.regop)
c:RegisterEffect(e1)
end
if Duel.GetLP(tp)<=3000 and Duel.IsExistingMatchingCard(c28317560.spfilter,tp,LOCATION_GRAVE,0,1,nil,e,tp) and Duel.GetMZoneCount(tp)>0 and Duel.SelectYesNo(tp,aux.Stringid(28317560,2)) then
......@@ -75,12 +75,12 @@ function c28317560.spop2(e,tp,eg,ep,ev,re,r,rp)
end
end
end
function c28316149.regop(e,tp,eg,ep,ev,re,r,rp)
function c28317560.regop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local p=c:GetPreviousControler()
local g=Duel.GetMatchingGroup(c28316149.spfilter,p,LOCATION_HAND,0,nil,e,p)
local g=Duel.GetMatchingGroup(c28317560.spfilter,p,LOCATION_HAND,0,nil,e,p)
if c:IsReason(REASON_DESTROY) and #g>0 and Duel.GetMZoneCount(p)>0 then
Duel.Hint(HINT_CARD,0,28316149)
Duel.Hint(HINT_CARD,0,28317560)
Duel.Hint(HINT_SELECTMSG,p,HINTMSG_SPSUMMON)
local tc=g:Select(p,1,1,nil):GetFirst()
Duel.SpecialSummon(tc,0,p,p,false,false,POS_FACEUP)
......
......@@ -71,11 +71,11 @@ function c28362718.activate(e,tp,eg,ep,ev,re,r,rp)
if tc then
Duel.SendtoHand(tc,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,tc)
else
end
if Duel.GetLP(tp)<=3000 and Duel.Draw(tp,1,REASON_EFFECT)~=0 then
--Duel.BreakEffect()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local g=Duel.SelectMatchingCard(tp,nil,tp,LOCATION_HAND+LOCATION_ONFIELD,0,1,1,nil)
local g=Duel.SelectMatchingCard(tp,nil,tp,LOCATION_HAND+LOCATION_ONFIELD,0,1,1,aux.ExceptThisCard(e))
if #g>0 then
Duel.HintSelection(g)
Duel.Destroy(g,REASON_EFFECT)
......
......@@ -41,7 +41,7 @@ function c28368431.activate(e,tp,eg,ep,ev,re,r,rp)
e1:SetOperation(c28368431.regop)
Duel.RegisterEffect(e1,tp)
end
function c28316149.setfilter(c,e,p)
function c28368431.setfilter(c,e,p)
return c:IsSetCard(0x285) and (c:IsSSetable() or Duel.GetMZoneCount(p)>0 and c:IsCanBeSpecialSummoned(e,0,p,false,false,POS_FACEDOWN_DEFENSE))
end
function c28368431.gcheck(g,tp)
......
......@@ -2,16 +2,6 @@
function c28384553.initial_effect(c)
aux.AddFusionProcFunRep2(c,c28384553.mfilter,2,99,true)
c:EnableReviveLimit()
--spsummon
local e0=Effect.CreateEffect(c)
e0:SetType(EFFECT_TYPE_FIELD)
e0:SetCode(EFFECT_SPSUMMON_PROC)
e0:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e0:SetRange(LOCATION_EXTRA)
e0:SetValue(SUMMON_TYPE_FUSION)
e0:SetCondition(c28384553.hspcon)
e0:SetOperation(c28384553.hspop)
c:RegisterEffect(e0)
--spsummon
local e0=Effect.CreateEffect(c)
e0:SetType(EFFECT_TYPE_FIELD)
......
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