Commit f494a1b3 authored by gg123gg's avatar gg123gg Committed by GitHub

Add files via upload

parent bfd4bf6d
...@@ -59,7 +59,7 @@ function c12026024.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -59,7 +59,7 @@ function c12026024.target(e,tp,eg,ep,ev,re,r,rp,chk)
local res,teg,tep,tev,tre,tr,trp=Duel.CheckEvent(event,true) local res,teg,tep,tev,tre,tr,trp=Duel.CheckEvent(event,true)
return not tg or tg(e,tp,teg,tep,tev,tre,tr,trp,0) return not tg or tg(e,tp,teg,tep,tev,tre,tr,trp,0)
end end
return re:GetHandler():IsRelateToEffect(re) and c:IsAbleToGrave() and eg:GetHandler():IsAbleToGrave() and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 return re:GetHandler():IsRelateToEffect(re) and c:IsAbleToGrave() and not re:IsHasType(EFFECT_TYPE_ACTIVATE) and eg:GetHandler():IsAbleToGrave() and Duel.GetLocationCount(tp,LOCATION_MZONE)>0
end end
local event=re:GetCode() local event=re:GetCode()
e:SetLabelObject(re) e:SetLabelObject(re)
...@@ -84,5 +84,5 @@ function c12026024.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -84,5 +84,5 @@ function c12026024.activate(e,tp,eg,ep,ev,re,r,rp)
if not te then return end if not te then return end
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
Duel.SendtoGrave(c+eg:GetHandler(),REASON_EFFECT) Duel.SendtoGrave(c+eg,REASON_EFFECT)
end end
\ No newline at end of file
local m=12026032
local cm=_G["c"..m]
--三位一体的女神 拉结尔 --三位一体的女神 拉结尔
xpcall(function() require("expansions/script/c37564765") end,function() require("script/c37564765") end) xpcall(function() require("expansions/script/c37564765") end,function() require("script/c37564765") end)
function c12026032.initial_effect(c) function cm.initial_effect(c)
--synchro summon --synchro summon
aux.AddSynchroProcedure2(c,nil,aux.NonTuner(nil)) aux.AddSynchroProcedure2(c,nil,aux.NonTuner(nil))
c:EnableReviveLimit() c:EnableReviveLimit()
...@@ -10,9 +12,9 @@ function c12026032.initial_effect(c) ...@@ -10,9 +12,9 @@ function c12026032.initial_effect(c)
e1:SetCode(EFFECT_SPSUMMON_PROC) e1:SetCode(EFFECT_SPSUMMON_PROC)
e1:SetProperty(EFFECT_FLAG_UNCOPYABLE) e1:SetProperty(EFFECT_FLAG_UNCOPYABLE)
e1:SetRange(LOCATION_EXTRA) e1:SetRange(LOCATION_EXTRA)
e1:SetCountLimit(1,12026032) e1:SetCountLimit(1,m)
e1:SetCondition(c12026032.spcon) e1:SetCondition(cm.spcon)
e1:SetOperation(c12026032.spop) e1:SetOperation(cm.spop)
c:RegisterEffect(e1) c:RegisterEffect(e1)
--atk up --atk up
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
...@@ -21,36 +23,52 @@ function c12026032.initial_effect(c) ...@@ -21,36 +23,52 @@ function c12026032.initial_effect(c)
e2:SetCode(EVENT_SPSUMMON_SUCCESS) e2:SetCode(EVENT_SPSUMMON_SUCCESS)
e2:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_CARD_TARGET) e2:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_CARD_TARGET)
e2:SetCategory(CATEGORY_TOHAND) e2:SetCategory(CATEGORY_TOHAND)
e2:SetCountLimit(1,12026032+100) e2:SetCountLimit(1,m+100)
e2:SetTarget(c12026020.rmtg) e2:SetTarget(cm.thtg)
e2:SetOperation(c12026020.rmop) e2:SetOperation(cm.thop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
--leave field --leave field
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS) e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
e2:SetProperty(EFFECT_FLAG_CANNOT_DISABLE) e2:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e2:SetCode(EVENT_LEAVE_FIELD) e2:SetCode(EVENT_LEAVE_FIELD)
e2:SetOperation(c12026032.regop) e2:SetOperation(cm.regop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c12026032.confilter(c,ec) function cm.confilter(c,ec)
return c:IsCanBeSynchroMaterial(ec) and c:IsSetCard(0x1fbd) and c:IsFaceup() and c:IsAbleToGraveAsCost() and c:GetLevel()>0 and c:IsSummonableCard() return c:IsCanBeSynchroMaterial(ec) and c:IsSetCard(0x1fbd) and c:IsFaceup() and c:IsAbleToGraveAsCost() and c:GetLevel()>0 and c:IsSummonableCard()
end end
function c12026032.gcheck(g,tp,fc) function cm.gcheck(g,tp,fc)
return Duel.GetLocationCountFromEx(tp,tp,g,fc)>0 and g:GetSum(Card.GetLevel)==3 return Duel.GetLocationCountFromEx(tp,tp,g,fc)>0 and g:GetSum(Card.GetLevel)==3
end end
function c12026032.spcon(e,c) function cm.spcon(e,c)
if c==nil then return true end if c==nil then return true end
local tp=c:GetControler() local tp=c:GetControler()
local mg=Duel.GetMatchingGroup(c12026032.confilter,tp,LOCATION_MZONE,0,nil,c) local mg=Duel.GetMatchingGroup(cm.confilter,tp,LOCATION_MZONE,0,nil,c)
return Senya.CheckGroup(mg,c12026032.gcheck,nil,1,4,tp,c) return Senya.CheckGroup(mg,cm.gcheck,nil,1,4,tp,c)
end end
function c12026032.spop(e,tp,eg,ep,ev,re,r,rp,c) function cm.spop(e,tp,eg,ep,ev,re,r,rp,c)
local mg=Duel.GetMatchingGroup(c12026032.confilter,tp,LOCATION_MZONE,0,nil,c) local mg=Duel.GetMatchingGroup(cm.confilter,tp,LOCATION_MZONE,0,nil,c)
local g=Senya.SelectGroup(tp,HINTMSG_TOGRAVE,mg,c12026032.gcheck,nil,1,3,tp,c) local g=Senya.SelectGroup(tp,HINTMSG_TOGRAVE,mg,cm.gcheck,nil,1,3,tp,c)
Duel.SendtoGrave(g,REASON_COST) Duel.SendtoGrave(g,REASON_COST)
end end
function c12026032.regop(e,tp,eg,ep,ev,re,r,rp) function cm.thfilter(c,tp)
return c:IsAttribute(ATTRIBUTE_LIGHT) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
end
function cm.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and cm.thfilter(chkc) end
if chk==0 then return Duel.IsExistingTarget(cm.thfilter,tp,LOCATION_GRAVE,0,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local sg=Duel.SelectTarget(tp,cm.thfilter,tp,LOCATION_GRAVE,0,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,sg,1,0,0)
end
function cm.thop(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) then
Duel.SendtoHand(tc,nil,REASON_EFFECT)
end
end
function cm.regop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
-- --
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
......
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