Commit 00e5a2a7 authored by POLYMER's avatar POLYMER

fix

parent 3f1e0f20
...@@ -39,7 +39,9 @@ function c98920056.tgfilter(c) ...@@ -39,7 +39,9 @@ function c98920056.tgfilter(c)
return c:IsSetCard(0x44,0x16f) and c:IsAbleToHand() return c:IsSetCard(0x44,0x16f) and c:IsAbleToHand()
end end
function c98920056.thtg(e,tp,eg,ep,ev,re,r,rp,chk) function c98920056.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c98920056.thfilter,tp,LOCATION_DECK,0,1,nil) end local b=Duel.IsEnvironment(56433456,PLAYER_ALL,LOCATION_ONFIELD+LOCATION_GRAVE)
local tg=Duel.GetMatchingGroup(c98920056.tgfilter,tp,LOCATION_DECK,0,nil)
if chk==0 then return Duel.IsExistingMatchingCard(c98920056.thfilter,tp,LOCATION_DECK,0,1,nil) or (b and #tg>0) end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK) Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
end end
function c98920056.thop(e,tp,eg,ep,ev,re,r,rp) function c98920056.thop(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -37,10 +37,12 @@ function c98920068.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -37,10 +37,12 @@ function c98920068.target(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function c98920068.operation(e,tp,eg,ep,ev,re,r,rp) function c98920068.operation(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(Card.IsAbleToHand,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,aux.ExceptThisCard(e)) local g=Duel.GetMatchingGroup(Card.IsAbleToHand,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,aux.ExceptThisCard(e))
if Duel.SendtoHand(g,nil,REASON_EFFECT) then
local g2=Duel.GetFieldGroup(tp,0,LOCATION_ONFIELD) local g2=Duel.GetFieldGroup(tp,0,LOCATION_ONFIELD)
if Duel.SendtoHand(g,nil,REASON_EFFECT) then
local og=Duel.GetOperatedGroup():Filter(Card.IsControler,nil,1-tp)
local cst=og:FilterCount(Card.IsLocation,nil,LOCATION_HAND)
local sg=Duel.GetMatchingGroup(c98920068.spfilter,tp,LOCATION_DECK+LOCATION_HAND+LOCATION_EXTRA+LOCATION_GRAVE,0,nil,e,tp) local sg=Duel.GetMatchingGroup(c98920068.spfilter,tp,LOCATION_DECK+LOCATION_HAND+LOCATION_EXTRA+LOCATION_GRAVE,0,nil,e,tp)
if g2:GetCount()>0 and sg:GetCount()>0 and Duel.SelectYesNo(tp,aux.Stringid(98920068,1)) then if cst==#og and sg:GetCount()>0 and Duel.SelectYesNo(tp,aux.Stringid(98920068,1)) then
Duel.BreakEffect() Duel.BreakEffect()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local kg=sg:Select(tp,1,1,nil) local kg=sg:Select(tp,1,1,nil)
......
--辉煌之代行者 许珀里翁 --辉煌之代行者 许珀里翁
local s,id,o=GetID() local s,id,o=GetID()
function c98920787.initial_effect(c) function c98920787.initial_effect(c)
aux.AddCodeList(c,56433456)
--special summon --special summon
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(98920787,0)) e1:SetDescription(aux.Stringid(98920787,0))
...@@ -26,7 +27,7 @@ function c98920787.initial_effect(c) ...@@ -26,7 +27,7 @@ function c98920787.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c98920787.spfilter(c,tp) function c98920787.spfilter(c,tp)
return c:IsReleasable(REASON_COST) and (c:IsControler(tp) or Duel.IsEnvironment(56433456)) and Duel.GetMZoneCount(tp,c,tp)>0 return c:IsReleasable(REASON_COST) and ((c:IsControler(tp) and c:IsSetCard(0x44)) or Duel.IsEnvironment(56433456)) and Duel.GetMZoneCount(tp,c,tp)>0
end end
function c98920787.spcost(e,tp,eg,ep,ev,re,r,rp,chk) function c98920787.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
local g=Duel.GetMatchingGroup(c98920787.spfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp) local g=Duel.GetMatchingGroup(c98920787.spfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp)
......
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