Commit 3c972027 authored by CubeRuler's avatar CubeRuler

fix

parent 08d9c33c
Pipeline #2503 failed with stages
in 43 minutes and 11 seconds
...@@ -30,14 +30,14 @@ function cm.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -30,14 +30,14 @@ function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,0,LOCATION_DECK) Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,0,LOCATION_DECK)
end end
function cm.thfilter(c) function cm.thfilter(c)
return c:IsSetCard(0xa553) and c:IsAbleToHand() return c:IsSetCard(0x2553) and c:IsAbleToHand()
end end
function cm.activate(e,tp,eg,ep,ev,re,r,rp) function cm.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.ConfirmDecktop(tp,3) Duel.ConfirmDecktop(tp,3)
local g=Duel.GetDecktopGroup(tp,3) local g=Duel.GetDecktopGroup(tp,3)
local bool=false local bool=false
if g:GetCount()>0 then if g:GetCount()>0 then
if g:IsExists(Card.IsSetCard,1,nil,0xa553) then if g:IsExists(Card.IsSetCard,1,nil,0x2553) then
if g:IsExists(cm.thfilter,1,nil) and Duel.SelectYesNo(tp,aux.Stringid(m,0)) then if g:IsExists(cm.thfilter,1,nil) and Duel.SelectYesNo(tp,aux.Stringid(m,0)) then
Duel.Hint(HINT_SELECTMSG,p,HINTMSG_ATOHAND) Duel.Hint(HINT_SELECTMSG,p,HINTMSG_ATOHAND)
local sg=g:FilterSelect(tp,cm.thfilter,1,1,nil) local sg=g:FilterSelect(tp,cm.thfilter,1,1,nil)
......
...@@ -30,7 +30,7 @@ function cm.tdop(e,tp) ...@@ -30,7 +30,7 @@ function cm.tdop(e,tp)
end end
function cm.tdcon(e,tp,eg) function cm.tdcon(e,tp,eg)
local f=function(c) local f=function(c)
return c:IsSetCard(0xa553) and c:IsType(TYPE_MONSTER) and (not c:IsLocation(LOCATION_GRAVE) or c:IsFaceup()) return c:IsSetCard(0x2553) and c:IsType(TYPE_MONSTER) and (not c:IsLocation(LOCATION_GRAVE) or c:IsFaceup())
end end
return eg:IsExists(f,1,nil) return eg:IsExists(f,1,nil)
end end
...@@ -38,7 +38,7 @@ function cm.condition(e,tp,eg,ep,ev,re,r,rp) ...@@ -38,7 +38,7 @@ function cm.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsAbleToEnterBP() return Duel.IsAbleToEnterBP()
end end
function cm.filter(c) function cm.filter(c)
return c:IsFaceup() and c:IsSetCard(0xa553) and not c:IsHasEffect(EFFECT_EXTRA_ATTACK) return c:IsFaceup() and c:IsSetCard(0x2553) and not c:IsHasEffect(EFFECT_EXTRA_ATTACK)
end end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function cm.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and cm.filter(chkc) end if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and cm.filter(chkc) end
......
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