Commit 02e2db51 authored by 聖園ミカ's avatar 聖園ミカ 🐟

31

parent 0b1b2306
No preview for this file type
......@@ -71,7 +71,6 @@ function cm.ssop(e,tp,eg,ep,ev,re,r,rp)
tc:RegisterEffect(e1,true)
end
end
function tc.splimit(e,c)
function cm.splimit(e,c)
return c:IsLocation(LOCATION_EXTRA)
end
--圣律·露泽莫尔
Duel.LoadScript("c22000000.lua")
function 22000110.initial_effect(c)
function c22000110.initial_effect(c)
wco.slp(c,22000110)
wco.snp3(c,22000110)
--recover
......@@ -10,10 +10,10 @@ function 22000110.initial_effect(c)
e1:SetProperty(EFFECT_FLAG_DELAY)
e1:SetCode(EVENT_SPSUMMON_SUCCESS)
e1:SetCountLimit(1,22000111)
e1:SetOperation(22000110.lvop)
e1:SetOperation(c22000110.lvop)
c:RegisterEffect(e1)
end
function 22000110.lvop(e,tp,eg,ep,ev,re,r,rp)
function c22000110.lvop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local lv=c:GetLevel()
local alv=11
......@@ -44,10 +44,10 @@ function 22000110.lvop(e,tp,eg,ep,ev,re,r,rp)
e3:SetCode(EFFECT_DISABLE)
e3:SetRange(LOCATION_PZONE)
e3:SetTargetRange(0,LOCATION_MZONE)
e3:SetTarget(22000110.distg)
e3:SetTarget(c22000110.distg)
Duel.RegisterEffect(e3,tp)
end
end
function 22000110.distg(e,c)
function c22000110.distg(e,c)
return c:IsAttack(0)
end
\ No newline at end of file
......@@ -9,8 +9,8 @@ function cm.initial_effect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCountLimit(1,m+EFFECT_COUNT_CODE_OATH)
e1:SetTarget(cm.target)
e1:SetOperation(cm.activate)
e1:SetTarget(cm.thtg)
e1:SetOperation(cm.thop)
c:RegisterEffect(e1)
end
function cm.thfilter(c)
......
......@@ -10,8 +10,8 @@ function cm.initial_effect(c)
e1:SetRange(LOCATION_HAND)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetCountLimit(1,m)
e1:SetTarget(c39271553.sptg)
e1:SetOperation(c39271553.spop)
e1:SetTarget(cm.sptg)
e1:SetOperation(cm.spop)
c:RegisterEffect(e1)
--negate
local e2=Effect.CreateEffect(c)
......@@ -21,7 +21,7 @@ function cm.initial_effect(c)
e2:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DAMAGE_CAL)
e2:SetCode(EVENT_CHAINING)
e2:SetRange(LOCATION_MZONE)
e2:SetCountLimit(1,1527419)
e2:SetCountLimit(1,m+900)
e2:SetCondition(cm.negcon)
e2:SetCost(cm.negcost)
e2:SetTarget(cm.negtg)
......
......@@ -62,3 +62,22 @@ end
function cm.splimit(e,c)
return not c:IsRace(RACE_CYBERSE)
end
function cm.spfilter(c,e,tp)
return c:IsSetCard(0x817) and not c:IsCode(m) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end
function cm.spcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsPreviousControler(tp) and rp==1-tp
end
function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingMatchingCard(cm.spfilter,tp,LOCATION_GRAVE,0,1,nil,e,tp) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_GRAVE)
end
function cm.spop(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(cm.spfilter),tp,LOCATION_GRAVE,0,1,1,nil,e,tp)
if g:GetCount()>0 then
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)
end
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