Commit 6dd2fd69 authored by Tachibana's avatar Tachibana

eme

parent 74ccce8c
Pipeline #8396 passed with stages
in 24 minutes and 46 seconds
......@@ -50,7 +50,7 @@ function cm.smop(e,tp,eg,ep,ev,re,r,rp)
if sg and sg:GetCount()>0 then
local el=tama.tamas_sumElements(sg)
Duel.SendtoDeck(sg,nil,2,REASON_EFFECT)
local g1=Duel.GetMatchingGroupCount(cm.thfilter,tp,LOCATION_DECK,0,el)
local g1=Duel.GetMatchingGroupCount(cm.thfilter,tp,LOCATION_DECK,0,nil,el)
if g1:GetCount()>0 and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local sg1=g1:Select(tp,1,g1:GetCount(),nil)
......
......@@ -3,6 +3,7 @@ local m=13257359
local cm=_G["c"..m]
xpcall(function() require("expansions/script/tama") end,function() require("script/tama") end)
function cm.initial_effect(c)
c:EnableCounterPermit(0x351)
--special summon
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
......@@ -104,9 +105,9 @@ function cm.thfilter(c)
end
function cm.pctg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
if chk==0 then return Duel.IsPlayerCanDraw(tp,1) end
local ct1=eg:GetCount()
local t1=ct1>0
if chk==0 then return t1 and Duel.IsPlayerCanDraw(tp,1) end
local op=0
local m1={}
local n1={}
......
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