Commit 91e45080 authored by POLYMER's avatar POLYMER

fix

parent 3acc163e
--星际仙踪-勇气狮
local s,id,o=GetID()
function s.initial_effect(c)
aux.AddLinkProcedure(c,nil,2,2,s.lcheck)
c:EnableReviveLimit()
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_DESTROY)
e1:SetType(EFFECT_TYPE_QUICK_O)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetRange(LOCATION_MZONE)
e1:SetCountLimit(2,id)
e1:SetTarget(s.target)
e1:SetOperation(s.operation)
c:RegisterEffect(e1)
end
function s.lcheck(g)
return g:IsExists(Card.IsLinkSetCard,1,nil,0xd2)
end
function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local c=e:GetHandler()
if chkc then return chkc:IsOnField() and chkc:IsFaceup() end
if chk==0 then return Duel.IsExistingTarget(Card.IsFaceup,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local g=Duel.SelectTarget(tp,Card.IsFaceup,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,1,0,0)
end
function s.setfilter(c)
return c:IsSetCard(0xd2) and c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsSSetable()
end
function s.operation(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) and Duel.Destroy(tc,REASON_EFFECT)>0 then
local g=Duel.GetMatchingGroup(s.setfilter,tp,LOCATION_DECK,0,nil)
if g:GetCount()>0 and Duel.SelectYesNo(tp,aux.Stringid(id,0)) then
Duel.BreakEffect()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SET)
local sg=g:Select(tp,1,1,nil)
Duel.SSet(tp,sg)
end
end
end
......@@ -37,7 +37,7 @@ function c22021960.initial_effect(c)
c:RegisterEffect(e4)
end
function c22021960.filter(c)
return aux.IsCodeListed(c,22021960) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand() and c:IsSetCard(0xff1)
return aux.IsCodeListed(c,22021960) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand() and c:IsSetCard(0x6ff1)
end
function c22021960.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c22021960.filter,tp,LOCATION_DECK,0,1,nil) end
......
......@@ -37,6 +37,7 @@ function cm.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
local g=Duel.GetMatchingGroup(Card.IsAbleToGraveAsCost,tp,LOCATION_HAND,0,nil)
if chk==0 then return #g>1 end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local sg=g:SelectSubGroup(tp,cm.fselect,false,2,2,c)
Duel.SendtoGrave(sg,REASON_COST)
end
......
......@@ -40,6 +40,7 @@ function cm.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
local g=Duel.GetMatchingGroup(Card.IsAbleToGraveAsCost,tp,LOCATION_HAND,0,nil)
if chk==0 then return #g>1 end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local sg=g:SelectSubGroup(tp,cm.fselect,false,2,2,c)
Duel.SendtoGrave(sg,REASON_COST)
end
......
......@@ -60,6 +60,7 @@ function cm.filter(c,tp,e)
e1:SetProperty(pro1,pro2)
c:RegisterEffect(e1,true)
local e2=SNNM.AASTregi(c,e1)
e2:SetLabel(c:GetSequence(),0x10002)
local res=false
if e1:IsActivatable(tp) then res=true end
e2:Reset()
......
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