Commit 51bb0b60 authored by 聖園ミカ's avatar 聖園ミカ 🐟

byd

parent a059efd5
Pipeline #30179 passed with stages
in 27 minutes and 53 seconds
...@@ -33,40 +33,38 @@ function cm.condition(e,tp,eg,ep,ev,re,r,rp) ...@@ -33,40 +33,38 @@ function cm.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(cm.cfilter,tp,LOCATION_MZONE,0,1,nil) return Duel.IsExistingMatchingCard(cm.cfilter,tp,LOCATION_MZONE,0,1,nil)
end end
function cm.filter(c) function cm.filter(c)
return (c:GetType()==TYPE_SPELL or c:IsType(TYPE_QUICKPLAY)) return (((c:GetType()==TYPE_SPELL or c:IsType(TYPE_QUICKPLAY)) and c:IsSetCard(0xa8e)) or c:IsCode(81050001,81050002))
and (c:IsSetCard(0xa8e) or c:IsCode(81050001,81050002))
and c:CheckActivateEffect(false,true,false)~=nil and c:CheckActivateEffect(false,true,false)~=nil
end end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function cm.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then if chkc then
local te=e:GetLabelObject() local te=e:GetLabelObject()
local tg=te:GetTarget() local tg=te:GetTarget()
return tg and tg(e,tp,eg,ep,ev,re,r,rp,0,chkc) return tg and tg(e,tp,eg,ep,ev,re,r,rp,0,chkc)
end end
local loc1,loc2=0,LOCATION_GRAVE if chk==0 then return Duel.IsExistingTarget(cm.filter,tp,LOCATION_GRAVE,0,1,nil) end
if e:GetType()&EFFECT_TYPE_QUICK_O>0 then loc1,loc2=LOCATION_GRAVE,0 end e:SetProperty(EFFECT_FLAG_CARD_TARGET)
if chk==0 then return Duel.IsExistingTarget(cm.filter,tp,loc1,loc2,1,nil) end e:SetCategory(0)
e:SetProperty(EFFECT_FLAG_CARD_TARGET) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TARGET)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TARGET) local g=Duel.SelectTarget(tp,cm.filter,tp,LOCATION_GRAVE,0,1,1,nil)
local g=Duel.SelectTarget(tp,cm.filter,tp,loc1,loc2,1,1,nil) 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) Duel.ClearTargetCard()
Duel.ClearTargetCard() g:GetFirst():CreateEffectRelation(e)
g:GetFirst():CreateEffectRelation(e) local tg=te:GetTarget()
local tg=te:GetTarget() e:SetProperty(te:GetProperty())
e:SetProperty(te:GetProperty()) if tg then tg(e,tp,ceg,cep,cev,cre,cr,crp,1) end
if tg then tg(e,tp,ceg,cep,cev,cre,cr,crp,1) end te:SetLabelObject(e:GetLabelObject())
te:SetLabelObject(e:GetLabelObject()) e:SetLabelObject(te)
e:SetLabelObject(te) Duel.ClearOperationInfo(0)
Duel.ClearOperationInfo(0)
end end
function cm.operation(e,tp,eg,ep,ev,re,r,rp) function cm.operation(e,tp,eg,ep,ev,re,r,rp)
local te=e:GetLabelObject() local te=e:GetLabelObject()
if not te then return end if not te then return end
local tc=te:GetHandler() local tc=te:GetHandler()
if not (tc:IsRelateToEffect(e) and tc:GetType()==TYPE_TRAP) then return end if not tc:IsRelateToEffect(e) then return end
e:SetLabelObject(te:GetLabelObject()) e:SetLabelObject(te:GetLabelObject())
local op=te:GetOperation() local op=te:GetOperation()
if op then op(e,tp,eg,ep,ev,re,r,rp) end if op then op(e,tp,eg,ep,ev,re,r,rp) end
end end
function cm.sumfilter(c) function cm.sumfilter(c)
return c:IsSetCard(0xa8e) and c:IsSummonable(true,nil) return c:IsSetCard(0xa8e) and c:IsSummonable(true,nil)
......
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