Commit 362c1406 authored by Amiya's avatar Amiya

修复

parent 7526366e
Pipeline #42426 passed with stages
in 1 minute and 23 seconds
-- --混絶獄神ヴィードリウム
local s,id,o=GetID() local s,id,o=GetID()
function s.initial_effect(c) function s.initial_effect(c)
c:EnableReviveLimit() c:EnableReviveLimit()
...@@ -175,5 +175,5 @@ function s.rmop(e,tp,eg,ep,ev,re,r,rp) ...@@ -175,5 +175,5 @@ function s.rmop(e,tp,eg,ep,ev,re,r,rp)
Duel.Remove(g,POS_FACEDOWN,REASON_EFFECT) Duel.Remove(g,POS_FACEDOWN,REASON_EFFECT)
end end
function s.efilter(e,te) function s.efilter(e,te)
return not te:GetOwner():IsSetCard(0x1ce) and te:IsActiveType(TYPE_MONSTER) return not te:GetHandler():IsSetCard(0x1ce) and te:IsActiveType(TYPE_MONSTER)
end end
\ No newline at end of file
-- --獄神影獣-ネルヴェド
local s,id,o=GetID() local s,id,o=GetID()
function s.initial_effect(c) function s.initial_effect(c)
aux.AddCodeList(c,53589300) aux.AddCodeList(c,53589300)
......
-- --獄神影機-ゼグレド
local s,id,o=GetID() local s,id,o=GetID()
function s.initial_effect(c) function s.initial_effect(c)
aux.AddCodeList(c,68231287) aux.AddCodeList(c,68231287)
...@@ -48,7 +48,6 @@ function s.destg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -48,7 +48,6 @@ function s.destg(e,tp,eg,ep,ev,re,r,rp,chk)
local g=Duel.GetMatchingGroup(nil,tp,LOCATION_MZONE,0,nil) local g=Duel.GetMatchingGroup(nil,tp,LOCATION_MZONE,0,nil)
g:AddCard(c) g:AddCard(c)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,2,0,0) Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,2,0,0)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,e:GetHandler(),1,0,0)
end end
function s.desop(e,tp,eg,ep,ev,re,r,rp) function s.desop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
...@@ -56,10 +55,10 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) ...@@ -56,10 +55,10 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local g=Duel.SelectMatchingCard(tp,s.desfilter,tp,LOCATION_MZONE,0,1,1,c) local g=Duel.SelectMatchingCard(tp,s.desfilter,tp,LOCATION_MZONE,0,1,1,c)
if #g>0 then if #g>0 then
g:AddCard(c)
Duel.HintSelection(g) Duel.HintSelection(g)
Duel.Destroy(g,REASON_EFFECT) g:AddCard(c)
if Duel.IsExistingMatchingCard(aux.TRUE,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil) if Duel.Destroy(g,REASON_EFFECT)==2
and Duel.IsExistingMatchingCard(aux.TRUE,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil)
and Duel.SelectYesNo(tp,aux.Stringid(id,3)) then and Duel.SelectYesNo(tp,aux.Stringid(id,3)) then
Duel.BreakEffect() Duel.BreakEffect()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
......
-- --獄神影精-ジュノルド
local s,id,o=GetID() local s,id,o=GetID()
function s.initial_effect(c) function s.initial_effect(c)
aux.AddCodeList(c,5914858) aux.AddCodeList(c,5914858)
......
-- --耀聖の風詩レギナ
local s,id,o=GetID() local s,id,o=GetID()
function s.initial_effect(c) function s.initial_effect(c)
--special summon --special summon
......
-- --絶解なる獄神門-テルミナス
local s,id,o=GetID() local s,id,o=GetID()
function s.initial_effect(c) function s.initial_effect(c)
--Activate --Activate
......
-- --絶無なる獄神界-ヴィードリア
local s,id,o=GetID() local s,id,o=GetID()
function s.initial_effect(c) function s.initial_effect(c)
aux.AddCodeList(c,53589300,68231287,5914858) aux.AddCodeList(c,53589300,68231287,5914858)
...@@ -42,10 +42,10 @@ function s.value1(e,c) ...@@ -42,10 +42,10 @@ function s.value1(e,c)
return Duel.GetFieldGroupCount(c:GetControler(),LOCATION_REMOVED,LOCATION_REMOVED)*(-100) return Duel.GetFieldGroupCount(c:GetControler(),LOCATION_REMOVED,LOCATION_REMOVED)*(-100)
end end
function s.cfilter(c,e,tp) function s.cfilter(c,e,tp)
return c:IsSetCard(0x1ce) and Duel.IsExistingMatchingCard(s.thfilter,tp,LOCATION_DECK,0,1,nil,e,tp,c) return c:IsSetCard(0x1ce) and Duel.IsExistingMatchingCard(s.thfilter,tp,LOCATION_DECK,0,1,nil,e,tp,c:GetCode())
end end
function s.thfilter(c,e,tp,fc) function s.thfilter(c,e,tp,cid)
if not (aux.IsCodeListed(c,fc:GetCode()) and c:IsType(TYPE_MONSTER)) then return false end if not (aux.IsCodeListed(c,cid) and c:IsType(TYPE_MONSTER)) then return false end
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
return c:IsAbleToHand() or (ft>0 and c:IsCanBeSpecialSummoned(e,0,tp,false,false)) return c:IsAbleToHand() or (ft>0 and c:IsCanBeSpecialSummoned(e,0,tp,false,false))
end end
...@@ -58,20 +58,20 @@ function s.thtg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -58,20 +58,20 @@ function s.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
local exg=Duel.GetMatchingGroup(s.cfilter,tp,LOCATION_EXTRA,0,nil,e,tp) local exg=Duel.GetMatchingGroup(s.cfilter,tp,LOCATION_EXTRA,0,nil,e,tp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_CONFIRM) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_CONFIRM)
local fc=exg:Select(tp,1,1,nil):GetFirst() local fc=exg:Select(tp,1,1,nil):GetFirst()
e:SetLabelObject(fc) e:SetLabel(fc:GetCode())
Duel.ConfirmCards(1-tp,fc) Duel.ConfirmCards(1-tp,fc)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK) Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
Duel.SetOperationInfo(0,CATEGORY_REMOVE,nil,1,tp,LOCATION_HAND) Duel.SetOperationInfo(0,CATEGORY_REMOVE,nil,1,tp,LOCATION_HAND)
end end
function s.thop(e,tp,eg,ep,ev,re,r,rp) function s.thop(e,tp,eg,ep,ev,re,r,rp)
local fc=e:GetLabelObject() local cid=e:GetLabel()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local rg=Duel.SelectMatchingCard(tp,s.rmfilter,tp,LOCATION_HAND,0,1,1,nil,tp) local rg=Duel.SelectMatchingCard(tp,s.rmfilter,tp,LOCATION_HAND,0,1,1,nil,tp)
local rc=rg:GetFirst() local rc=rg:GetFirst()
if rc and Duel.Remove(rc,POS_FACEDOWN,REASON_EFFECT) then if rc and Duel.Remove(rc,POS_FACEDOWN,REASON_EFFECT) then
Duel.BreakEffect() Duel.BreakEffect()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local g=Duel.SelectMatchingCard(tp,s.thfilter,tp,LOCATION_DECK,0,1,1,nil,e,tp,fc) local g=Duel.SelectMatchingCard(tp,s.thfilter,tp,LOCATION_DECK,0,1,1,nil,e,tp,cid)
local tc=g:GetFirst() local tc=g:GetFirst()
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
if tc then if tc then
...@@ -88,9 +88,9 @@ function s.cofilter(c,cid) ...@@ -88,9 +88,9 @@ function s.cofilter(c,cid)
return c:IsFaceup() and c:IsCode(cid) return c:IsFaceup() and c:IsCode(cid)
end end
function s.actcon(e) function s.actcon(e)
return Duel.IsExistingMatchingCard(s.cofilter,e:GetHandlerPlayer(),LOCATION_MZONE,0,1,nil,53589300) return Duel.IsExistingMatchingCard(s.cofilter,e:GetHandlerPlayer(),LOCATION_ONFIELD,0,1,nil,53589300)
and Duel.IsExistingMatchingCard(s.cofilter,e:GetHandlerPlayer(),LOCATION_MZONE,0,1,nil,68231287) and Duel.IsExistingMatchingCard(s.cofilter,e:GetHandlerPlayer(),LOCATION_ONFIELD,0,1,nil,68231287)
and Duel.IsExistingMatchingCard(s.cofilter,e:GetHandlerPlayer(),LOCATION_MZONE,0,1,nil,5914858) and Duel.IsExistingMatchingCard(s.cofilter,e:GetHandlerPlayer(),LOCATION_ONFIELD,0,1,nil,5914858)
end end
function s.aclimit(e,re,tp) function s.aclimit(e,re,tp)
return re:GetActivateLocation()==LOCATION_GRAVE return re:GetActivateLocation()==LOCATION_GRAVE
......
-- --アルトメギア・インパスト -奪還-
local s,id,o=GetID() local s,id,o=GetID()
function s.initial_effect(c) function s.initial_effect(c)
--Activate --Activate
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_NEGATE+CATEGORY_DESTROY+CATEGORY_REMOVE+CATEGORY_SPECIAL_SUMMON) e1:SetCategory(CATEGORY_NEGATE+CATEGORY_DESTROY+CATEGORY_REMOVE+CATEGORY_TOHAND)
e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_CHAINING) e1:SetCode(EVENT_CHAINING)
e1:SetCountLimit(1,id+EFFECT_COUNT_CODE_OATH) e1:SetCountLimit(1,id+EFFECT_COUNT_CODE_OATH)
......
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