Commit 37a9f7a2 authored by CubeRuler's avatar CubeRuler

fixed

parent f4c7a97f
Pipeline #14574 canceled with stages
in 1 minute and 44 seconds
...@@ -44,20 +44,21 @@ end ...@@ -44,20 +44,21 @@ end
function c33330103.disop(e,tp,eg,ep,ev,re,r,rp) function c33330103.disop(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateEffect(ev) Duel.NegateEffect(ev)
end end
function c33330103.hspfilter(c) function c33330103.hspfilter(c,tp)
return c:IsSetCard(0x55f) return c:IsSetCard(0x55f)
and c:IsAbleToDeckOrExtraAsCost() and c:IsAbleToRemoveAsCost()
end end
function c33330103.hspcon(e,c) function c33330103.hspcon(e,c,tp)
if c==nil then return true end if c==nil then return true end
local tp=c:GetControler() local tp=c:GetControler()
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
return ft>0 and Duel.IsExistingMatchingCard(c33330103.hspfilter,tp,LOCATION_GRAVE,0,4,c) return ft>0 and Duel.IsExistingMatchingCard(c33330103.hspfilter,tp,LOCATION_GRAVE,0,4,c,tp)
end end
function c33330103.hspop(e,tp,eg,ep,ev,re,r,rp,c) function c33330103.hspop(e,tp,eg,ep,ev,re,r,rp,c)
local c=e:GetHandler()
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
local g=Duel.IsExistingMatchingCard(tp,c33330103.hspfilter,tp,LOCATION_GRAVE,0,4,4,c) local g=Duel.SelectMatchingCard(tp,c33330103.hspfilter,tp,LOCATION_GRAVE,0,4,4,c,tp)
Duel.SendtoDeck(g,nil,2,REASON_COST) Duel.Remove(g,POS_FACEUP,REASON_COST)
end end
function c33330103.actop(e,tp,eg,ep,ev,re,r,rp) function c33330103.actop(e,tp,eg,ep,ev,re,r,rp)
local rc=re:GetHandler() local rc=re:GetHandler()
...@@ -75,29 +76,14 @@ function c33330103.lcfil(c) ...@@ -75,29 +76,14 @@ function c33330103.lcfil(c)
return c:IsSetCard(0x55f) and c:IsLinkAbove(2) return c:IsSetCard(0x55f) and c:IsLinkAbove(2)
end end
function c33330103.atkfil(c) function c33330103.atkfil(c)
return c:IsFaceup() and c:IsAttackAbove(2000) return c:IsFaceup() and c:IsAttackAbove(3000)
end end
function c33330103.atktg(e,tp,eg,ep,ev,re,r,rp,chk) function c33330103.atktg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsAbleToGrave,tp,LOCATION_DECK+LOCATION_HAND+LOCATION_ONFIELD,0,1,nil) and Duel.IsExistingMatchingCard(c33330103.atkfil,tp,0,LOCATION_MZONE,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(Card.IsAbleToGrave,tp,LOCATION_DECK,0,1,nil) and Duel.IsExistingMatchingCard(c33330103.atkfil,tp,0,LOCATION_MZONE,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,nil,1,tp,LOCATION_DECK) Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,nil,1,tp,LOCATION_DECK)
end end
function c33330103.atkop(e,tp,eg,ep,ev,re,r,rp) function c33330103.atkop(e,tp,eg,ep,ev,re,r,rp)
local g1=Duel.GetMatchingGroup(Card.IsAbleToGrave,tp,LOCATION_HAND+LOCATION_ONFIELD,0,1,nil) local g=Duel.GetDecktopGroup(tp,1)
local g2=Duel.GetDecktopGroup(tp,1)
local op=99
if g1:GetCount()>0 and g2:GetCount()>0 then
op=Duel.SelectOption(tp,aux.Stringid(33330103,0),aux.Stringid(33330103,1))
elseif g1:GetCount()>0 then
op=Duel.SelectOption(tp,aux.Stringid(33330103,0))
elseif g2:GetCount()>0 then
op=Duel.SelectOption(tp,aux.Stringid(33330103,1))+1
else return end
local g=Group.CreateGroup()
if op==0 then
g=g1:FilterSelect(tp,aux.TRUE,1,1,nil)
elseif op==1 then
g=g2
end
if Duel.SendtoGrave(g,REASON_EFFECT)~=0 then if Duel.SendtoGrave(g,REASON_EFFECT)~=0 then
local atg=Duel.GetMatchingGroup(c33330103.atkfil,tp,0,LOCATION_MZONE,nil) local atg=Duel.GetMatchingGroup(c33330103.atkfil,tp,0,LOCATION_MZONE,nil)
local atc=atg:GetFirst() local atc=atg:GetFirst()
...@@ -105,7 +91,7 @@ function c33330103.atkop(e,tp,eg,ep,ev,re,r,rp) ...@@ -105,7 +91,7 @@ function c33330103.atkop(e,tp,eg,ep,ev,re,r,rp)
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_SET_ATTACK_FINAL) e1:SetCode(EFFECT_SET_ATTACK_FINAL)
e1:SetValue(1000) e1:SetValue(2500)
e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_DISABLE) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_DISABLE)
atc:RegisterEffect(e1) atc:RegisterEffect(e1)
atc=atg:GetNext() atc=atg:GetNext()
......
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