Commit bad9fbe9 authored by 聖園ミカ's avatar 聖園ミカ 🐟

Replace c22600031.lua

parent c6340acc
...@@ -11,9 +11,6 @@ function c22600031.initial_effect(c) ...@@ -11,9 +11,6 @@ function c22600031.initial_effect(c)
e1:SetOperation(cm.activate) e1:SetOperation(cm.activate)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function cm.sumlimit(e,c,sump,sumtype,sumpos,targetp,se)
return not c:IsCode(22600032)
end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk) function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsPlayerCanSpecialSummonMonster(tp,22600032,0,TYPES_TOKEN_MONSTER,0,0,1,RACE_INSECT,ATTRIBUTE_EARTH,POS_FACEUP_ATTACK) end and Duel.IsPlayerCanSpecialSummonMonster(tp,22600032,0,TYPES_TOKEN_MONSTER,0,0,1,RACE_INSECT,ATTRIBUTE_EARTH,POS_FACEUP_ATTACK) end
...@@ -89,7 +86,7 @@ function cm.ffilter(c) ...@@ -89,7 +86,7 @@ function cm.ffilter(c)
end end
function cm.tgop(e,tp,eg,ep,ev,re,r,rp) function cm.tgop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if Duel.Destroy(c,REASON_EFFECT)~=0 then if c:IsRelateToEffect(e) and Duel.Destroy(c,REASON_EFFECT)~=0 then
local g=Duel.GetMatchingGroup(cm.ffilter,tp,LOCATION_HAND+LOCATION_ONFIELD+LOCATION_DECK+LOCATION_GRAVE+LOCATION_REMOVED,LOCATION_HAND+LOCATION_ONFIELD+LOCATION_DECK+LOCATION_GRAVE+LOCATION_REMOVED,nil,tp) local g=Duel.GetMatchingGroup(cm.ffilter,tp,LOCATION_HAND+LOCATION_ONFIELD+LOCATION_DECK+LOCATION_GRAVE+LOCATION_REMOVED,LOCATION_HAND+LOCATION_ONFIELD+LOCATION_DECK+LOCATION_GRAVE+LOCATION_REMOVED,nil,tp)
local te,ceg,cep,cev,cre,cr,crp=g:GetFirst():CheckActivateEffect(false,true,true) local te,ceg,cep,cev,cre,cr,crp=g:GetFirst():CheckActivateEffect(false,true,true)
local op=te:GetOperation() local op=te:GetOperation()
......
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