Commit 00031c7b authored by Tachibana's avatar Tachibana

ybb

parent bde2a246
...@@ -42,7 +42,7 @@ function cm.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -42,7 +42,7 @@ function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK) Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
end end
function cm.activate(e,tp,eg,ep,ev,re,r,rp) function cm.activate(e,tp,eg,ep,ev,re,r,rp)
local ct=eg:Filter(cm.filter,nil):GetFirst():GetMaterialCount() local ct=eg:Filter(cm.filter,nil,tp):GetFirst():GetMaterialCount()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local g=Duel.SelectMatchingCard(tp,cm.tgfilter,tp,LOCATION_DECK,0,ct,ct,nil) local g=Duel.SelectMatchingCard(tp,cm.tgfilter,tp,LOCATION_DECK,0,ct,ct,nil)
if g:GetCount()>0 then if g:GetCount()>0 then
......
...@@ -74,6 +74,7 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -74,6 +74,7 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
end end
function cm.drcost(e,tp,eg,ep,ev,re,r,rp,chk) function cm.drcost(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
if chk==0 then return e:GetHandler():GetAttack()>=3000 end if chk==0 then return e:GetHandler():GetAttack()>=3000 end
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
......
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