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

Replace c62624155.lua

parent 0452bbf6
......@@ -4,7 +4,7 @@ function c62624155.initial_effect(c)
--fusion material
c:EnableReviveLimit()
aux.AddFusionProcCodeFunRep(c,62624110,aux.FilterBoolFunction(Card.IsRace,RACE_BEAST),1,127,true,true)
aux.AddContactFusionProcedure(c,c62624155.cfilter,LOCATION_MZONE,LOCATION_MZONE,Duel.SendtoGrave,REASON_COST)
aux.AddContactFusionProcedure(c,c62624155.cfilter,LOCATION_MZONE,LOCATION_MZONE,Duel.SendtoGrave,REASON_COST+REASON_MATERIAL+REASON_FUSION)
--spsummon condition
local e0=Effect.CreateEffect(c)
e0:SetType(EFFECT_TYPE_SINGLE)
......@@ -12,15 +12,13 @@ function c62624155.initial_effect(c)
e0:SetCode(EFFECT_SPSUMMON_CONDITION)
e0:SetValue(aux.fuslimit)
c:RegisterEffect(e0)
--Special Summon
--Set
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(62624155,1))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_TOHAND+CATEGORY_SEARCH)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetCode(EVENT_SPSUMMON_SUCCESS)
e1:SetProperty(EFFECT_FLAG_DELAY)
e1:SetTarget(c62624155.sptg)
e1:SetOperation(c62624155.spop)
e1:SetTarget(c62624155.settg)
e1:SetOperation(c62624155.setop)
c:RegisterEffect(e1)
--cannot be target
local e2=Effect.CreateEffect(c)
......@@ -57,31 +55,17 @@ end
function c62624155.cfilter(c,fc)
return c:IsAbleToGraveAsCost() and (c:IsControler(fc:GetControler()) or c:IsFaceup())
end
function c62624155.spfilter(c,e,tp)
return c:IsCode(62624105) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
function c62624155.setfilter(c)
return c:IsCode(62624220) and c:IsSSetable()
end
function c62624155.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingMatchingCard(c62624155.spfilter,tp,LOCATION_DECK+LOCATION_GRAVE,0,1,nil,e,tp) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK+LOCATION_GRAVE)
function c62624155.settg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c62624155.setfilter,tp,LOCATION_DECK+LOCATION_GRAVE,0,1,nil) end
end
function c62624155.thfilter(c)
return c:IsCode(62624220) and c:IsAbleToHand()
end
function c62624155.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(c62624155.spfilter),tp,LOCATION_DECK+LOCATION_GRAVE,0,1,1,nil,e,tp)
if g:GetCount()>0 and Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)>0 then
if Duel.IsExistingMatchingCard(c62624155.filter,tp,LOCATION_FZONE,0,1,nil)
and Duel.IsExistingMatchingCard(c62624155.thfilter,tp,LOCATION_DECK,0,1,nil)
and Duel.SelectYesNo(tp,aux.Stringid(62624155,0)) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local g=Duel.SelectMatchingCard(tp,c62624155.thfilter,tp,LOCATION_DECK,0,1,1,nil)
if g:GetCount()>0 then
Duel.SendtoHand(g,nil,REASON_EFFECT)
end
end
function c62624155.setop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SET)
local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(c62624155.setfilter),tp,LOCATION_DECK+LOCATION_GRAVE,0,1,1,nil)
if #g>0 then
Duel.SSet(tp,g)
end
end
function c62624155.filter(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