Commit 3cb563fe authored by Tachibana's avatar Tachibana

eme

parent 90e34f92
Pipeline #6554 passed with stages
in 23 minutes and 55 seconds
......@@ -7,7 +7,7 @@ function cm.initial_effect(c)
--SpecialSummon
local e1=HakaShiro.SPSummon(c,m)
--to grave
local e2=srre.SPSummoneffect(c,m,1,3,CATEGORY_TOGRAVE+CATEGORY_DECKDES,nil,{1,m+100},nil,nil,cm.sptg,cm.spop)
local e2=srre.SPSummoneffect(c,m,{m,1},3,CATEGORY_TOGRAVE+CATEGORY_DECKDES,nil,{1,m+100},nil,nil,cm.sptg,cm.spop)
--INDESTRUCTABLE
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_SINGLE)
......
......@@ -132,11 +132,10 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
Duel.RegisterEffect(e1,tp)
end
function cm.ffilter(c,tp)
return c:IsControler(tp) and c:IsType(TYPE_MONSTER)
return c:IsPreviousLocation(LOCATION_ONFIELD) and c:GetPreviousControler()==tp and c:IsType(TYPE_MONSTER)
end
function cm.descon(e,tp,eg,ep,ev,re,r,rp)
local g=eg:Filter(cm.ffilter,nil,tp)
return g
return eg and eg:FilterCount(cm.ffilter,nil,tp)>0
end
function cm.destg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true 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