Commit 2b2d2560 authored by root's avatar root

Refresh on 2025-05-13 17:00:45

parent 9f4eadb3
......@@ -48,13 +48,13 @@ function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SendtoGrave(g,REASON_COST)
end
function cm.f(c,e,tp)
return c:IsCanBeSpecialSummoned(e,0,tp,false,false)
return c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:IsType(TYPE_MONSTER)
end
function cm.con(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetFlagEffect(tp,m)>=1
end
function cm.tg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and cm.f(chkc,e,tp) end
if chkc then return chkc:IsControler(1-tp) and chkc:IsLocation(LOCATION_GRAVE) and cm.f(chkc,e,tp) end
local c=e:GetHandler()
if chk==0 then return Duel.IsExistingTarget(cm.f,tp,0,LOCATION_GRAVE,1,nil,e,tp) and not Duel.IsPlayerAffectedByEffect(tp,59822133)
and Duel.GetLocationCount(tp,LOCATION_MZONE)>1 and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end
......
......@@ -86,10 +86,10 @@ function s.accon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(s.cfilter,1,nil,se)
end
function s.actg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(s.ctfilter,tp,LOCATION_FZONE,LOCATION_FZONE,nil) end
if chk==0 then return Duel.IsExistingMatchingCard(s.ctfilter,tp,0,LOCATION_FZONE,1,nil) end
end
function s.addc(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(s.ctfilter,tp,LOCATION_FZONE,LOCATION_FZONE,nil)
local g=Duel.GetMatchingGroup(s.ctfilter,tp,0,LOCATION_FZONE,nil)
local tc=g:GetFirst()
while tc do
tc:AddCounter(0x1b,1)
......
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