Commit c37258b0 authored by 聖園ミカ's avatar 聖園ミカ 🐟

7

parent a4d574a2
......@@ -18,7 +18,7 @@ function s.initial_effect(c)
e3:SetValue(s.val)
c:RegisterEffect(e3)
--opp to hand
local e1=Effect.CreateEffect(c)
local e2=Effect.CreateEffect(c)
e2:SetCategory(CATEGORY_TOHAND)
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e2:SetCode(EVENT_BATTLE_START)
......
--归墟仲裁 天卫
--
local m=30015115
local cm=_G["c"..m]
if not overuins then dofile("expansions/script/c30015500.lua") end
......
......@@ -63,7 +63,7 @@ function c75600027.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SendtoGrave(e:GetHandler(),REASON_COST)
end
function c75600027.thfilter(c)
return c:IsCode(75600027) and c:IsAbleToHand()
return c:IsCode(75600026) and c:IsAbleToHand()
end
function c75600027.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c75600027.thfilter,tp,LOCATION_DECK,0,1,nil) end
......
......@@ -61,7 +61,7 @@ function c75600170.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
end
function c75600170.thop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(c75600170.thfilter),tp,LOCATION_GRAVE,LOCATION_GRAVE+LOCATION_ONFIELD+LOCATION_REMOVED,1,1,nil,tp)
local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(c75600170.thfilter),tp,LOCATION_GRAVE+LOCATION_ONFIELD+LOCATION_REMOVED,LOCATION_GRAVE+LOCATION_ONFIELD+LOCATION_REMOVED,1,1,nil,tp)
if g:GetCount()>0 then
Duel.SendtoHand(g,nil,REASON_EFFECT)
end
......
......@@ -69,7 +69,7 @@ function c75600172.activate(e,tp,eg,ep,ev,re,r,rp)
if ft<=0 then return end
if ft>=ct1 then ft=ct1 end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(c75600172.spfilter),tp,LOCATION_GRAVE+LOCATION_DECK+LOCATION_HAND,0,1,ct1,nil,e,tp)
local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(c75600172.spfilter),tp,LOCATION_GRAVE+LOCATION_DECK+LOCATION_HAND,0,1,ft,nil,e,tp)
if g:GetCount()>0 then
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)
end
......@@ -79,15 +79,15 @@ function c75600172.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.Recover(p,d,REASON_EFFECT)
end
end
function c75600172.spfilter(c,e,tp)
function c75600172.spfilter1(c,e,tp)
return c:IsSetCard(0x92c4) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end
function c75600172.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_GRAVE) and c75600172.spfilter(chkc,e,tp) end
if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_GRAVE) and c75600172.spfilter1(chkc,e,tp) end
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingTarget(c75600172.spfilter,tp,LOCATION_GRAVE,0,1,nil,e,tp) end
and Duel.IsExistingTarget(c75600172.spfilter1,tp,LOCATION_GRAVE,0,1,nil,e,tp) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectTarget(tp,c75600172.spfilter,tp,LOCATION_GRAVE,0,1,1,nil,e,tp)
local g=Duel.SelectTarget(tp,c75600172.spfilter1,tp,LOCATION_GRAVE,0,1,1,nil,e,tp)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,g,1,0,0)
end
function c75600172.spop(e,tp,eg,ep,ev,re,r,rp)
......
......@@ -21,16 +21,17 @@ function c75600176.initial_effect(c)
local e2=e1:Clone()
e2:SetType(EFFECT_TYPE_QUICK_O)
e2:SetCode(EVENT_FREE_CHAIN)
e1:SetCountLimit(1,EFFECT_COUNT_CODE_SINGLE)
e2:SetHintTiming(0,TIMINGS_CHECK_MONSTER+TIMING_END_PHASE)
e2:SetCondition(c75600176.qkcon)
c:RegisterEffect(e2)
local e4=Effect.CreateEffect(c)
e4:SetDescription(aux.Stringid(75600176,1))
e4:SetCode(EFFECT_TYPE_IGNITION)
e4:SetDescription(aux.Stringid(75600176,1))
e4:SetType(EFFECT_TYPE_IGNITION)
e4:SetRange(LOCATION_SZONE)
e4:SetCondition(c75600176.tcon)
e4:SetCountLimit(1,EFFECT_COUNT_CODE_SINGLE)
e4:SetCountLimit(1,75600176)
e4:SetOperation(function(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
if not c:IsRelateToEffect(e) or c:IsFacedown() or c:IsImmuneToEffect(e) then return end
......@@ -45,6 +46,7 @@ function c75600176.initial_effect(c)
e5:SetCode(EVENT_FREE_CHAIN)
e5:SetHintTiming(0,TIMINGS_CHECK_MONSTER+TIMING_END_PHASE)
e5:SetCondition(c75600176.qkcon1)
e5:SetCountLimit(1,75600176)
c:RegisterEffect(e5)
if not c75600176.global_check then
c75600176.global_check=true
......
......@@ -72,6 +72,9 @@ end
function c75600177.filter1(c,loc1)
return c:IsSetCard(0x92c4) and c:IsPreviousLocation(loc1) and c:IsLocation(LOCATION_DECK+LOCATION_EXTRA)
end
function c75600177.setfilter(c)
return c:IsCode(75600172) and c:IsSSetable()
end
function c75600177.op(e,tp,eg,ep,ev,re,r,rp)
local tg=Duel.GetMatchingGroup(c75600177.filter,tp,LOCATION_GRAVE+LOCATION_REMOVED+LOCATION_HAND+LOCATION_ONFIELD,0,nil)
local sg=tg:Filter(Card.IsLocation,nil,LOCATION_HAND)
......@@ -92,6 +95,21 @@ function c75600177.op(e,tp,eg,ep,ev,re,r,rp)
end
end
if ct3>0 then Duel.Damage(1-tp,ct3*500,REASON_EFFECT) end
if Duel.IsExistingMatchingCard(c75600177.setfilter,tp,LOCATION_DECK,0,1,nil) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SET)
local rg=Duel.SelectMatchingCard(tp,c75600177.setfilter,tp,LOCATION_DECK,0,1,1,nil)
local tc=rg:GetFirst()
Duel.BreakEffect()
if tc and Duel.SSet(tp,tc)~=0 then
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetDescription(aux.Stringid(75600177,0))
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_QP_ACT_IN_SET_TURN)
e1:SetProperty(EFFECT_FLAG_SET_AVAILABLE)
e1:SetReset(RESET_EVENT+RESETS_STANDARD)
tc:RegisterEffect(e1)
end
end
end
function c75600177.backon(e,tp,eg,ep,ev,re,r,rp)
......
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