Commit 9904632b authored by Tachibana's avatar Tachibana

ybb

parent a3f42990
No preview for this file type
......@@ -53,7 +53,7 @@ end
function cm.spop(e,tp,eg,ep,ev,re,r,rp,c)
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g=Duel.SelectMatchingCard(tp,cm.spfilter,tp,LOCATION_MZONE,0,1,1,nil,ft)
local g=Duel.SelectMatchingCard(tp,cm.spfilter,tp,LOCATION_MZONE+LOCATION_HAND,0,1,1,nil,ft)
Duel.SendtoGrave(g,REASON_COST)
end
--SearchCard
......
......@@ -77,5 +77,5 @@ function cm.eqlimit(e,c)
end
--index
function cm.indtg(e,c)
return c:IsSetCard(0x251) and c:IsFaceup()
return c:GetSequence()<5 and c:IsSetCard(0x251) and c:IsFaceup()
end
\ No newline at end of file
--M4A1·申冤者
local m=25810051
local n=25810041
local m=25810051
local cm=_G["c"..m]
function cm.initial_effect(c)
aux.AddSynchroMixProcedure(c,cm.matfilter,nil,nil,aux.NonTuner(Card.IsSetCard,0x251),1,99)
......@@ -17,9 +17,10 @@ function cm.initial_effect(c)
c:RegisterEffect(e1)
--immune
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetType(EFFECT_TYPE_FIELD)
e2:SetCode(EFFECT_IMMUNE_EFFECT)
e2:SetRange(LOCATION_MZONE)
e2:SetProperty(EFFECT_FLAG_IGNORE_IMMUNE)
e2:SetTargetRange(LOCATION_MZONE,0)
e2:SetTarget(cm.imtg)
e2:SetValue(cm.efilter)
......@@ -78,7 +79,7 @@ function cm.eqlimit(e,c)
end
--immune
function cm.imtg(e,c)
return e:GetHandler() and c:IsCode(n)
return e:GetHandler() or c:IsCode(n)
end
function cm.efilter(e,re)
return e:GetHandlerPlayer()~=re:GetOwnerPlayer()
......@@ -90,12 +91,10 @@ function cm.descon(e,tp,eg,ep,ev,re,r,rp)
and rc:IsFaceup() and rc:IsCode(n) and rc:IsControler(tp)
end
function cm.destg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetFlagEffect(tp,1157684)==0
and Duel.IsExistingMatchingCard(aux.TRUE,tp,0,LOCATION_ONFIELD,1,nil) end
Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription())
Duel.RegisterFlagEffect(tp,1157684,RESET_PHASE+PHASE_END,0,1)
local g=Duel.GetMatchingGroup(aux.TRUE,tp,0,LOCATION_ONFIELD,nil)
if chk==0 then return Duel.IsExistingMatchingCard(nil,tp,0,LOCATION_ONFIELD,1,nil) end
local g=Duel.GetMatchingGroup(nil,tp,0,LOCATION_ONFIELD,nil)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,1,0,0)
Duel.SetOperationInfo(0,CATEGORY_DAMAGE,nil,0,1-tp,0)
end
function cm.desop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
......
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