Commit cff8674c authored by POLYMER's avatar POLYMER

fix

parent ed4a5e32
...@@ -19,9 +19,9 @@ function s.initial_effect(c) ...@@ -19,9 +19,9 @@ function s.initial_effect(c)
e2:SetDescription(aux.Stringid(id,1)) e2:SetDescription(aux.Stringid(id,1))
e2:SetCategory(CATEGORY_GRAVE_ACTION) e2:SetCategory(CATEGORY_GRAVE_ACTION)
e2:SetType(EFFECT_TYPE_TRIGGER_O+EFFECT_TYPE_SINGLE) e2:SetType(EFFECT_TYPE_TRIGGER_O+EFFECT_TYPE_SINGLE)
e2:SetCode(EVENT_DESTROYED)
e2:SetProperty(EFFECT_FLAG_DELAY) e2:SetProperty(EFFECT_FLAG_DELAY)
e2:SetCode(EVENT_REMOVE) e2:SetCountLimit(1,id+1)
e2:SetCountLimit(1,id+100)
e2:SetCondition(s.setcon) e2:SetCondition(s.setcon)
e2:SetTarget(s.settg) e2:SetTarget(s.settg)
e2:SetOperation(s.setop) e2:SetOperation(s.setop)
...@@ -89,7 +89,7 @@ end ...@@ -89,7 +89,7 @@ end
-- 效果②条件:场上有龗龘䨻且被除外 -- 效果②条件:场上有龗龘䨻且被除外
function s.cfilter(c) function s.cfilter(c)
return c:IsCode(id+1) -- 假设龗龘䨻的ID是当前ID+1 return c:IsCode(11185036)
end end
function s.setcon(e,tp,eg,ep,ev,re,r,rp) function s.setcon(e,tp,eg,ep,ev,re,r,rp)
return (re and re:GetHandler():IsSetCard(0x5450)) or rp==1-tp return (re and re:GetHandler():IsSetCard(0x5450)) or rp==1-tp
......
...@@ -136,7 +136,7 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -136,7 +136,7 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
if #g>0 then if #g>0 then
local tc=g:GetFirst() local tc=g:GetFirst()
local op=aux.SelectFromOptions(tp, local op=aux.SelectFromOptions(tp,
{aux.TRUE,aux.Stringid(id,3)},{tc:IsAbleToGrave(),aux.Stringid(id,4)},{tc:IsAbleToRemove(),aux.Stringid(id,5)},{tc:IsReleasableByEffect(),aux.Stringid(id,6)}) {aux.TRUE,aux.Stringid(id,3)},{tc:IsAbleToGrave(),aux.Stringid(id,4)},{tc:IsAbleToRemove(),aux.Stringid(id,5)},{tc:IsReleasableByEffect(),aux.Stringid(id,6)})
if op==1 then if op==1 then
Duel.Destroy(tc,REASON_EFFECT) Duel.Destroy(tc,REASON_EFFECT)
elseif op==2 then elseif op==2 then
...@@ -146,7 +146,7 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -146,7 +146,7 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
Duel.Remove(tc,POS_FACEUP,REASON_EFFECT) Duel.Remove(tc,POS_FACEUP,REASON_EFFECT)
elseif op==4 then elseif op==4 then
Duel.Release(tc,REASON_EFFECT) Duel.Release(tc,REASON_EFFECT)
end end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local sg=Duel.SelectMatchingCard(tp,s.stfilter,tp,LOCATION_DECK,0,1,1,nil) local sg=Duel.SelectMatchingCard(tp,s.stfilter,tp,LOCATION_DECK,0,1,1,nil)
if #sg>0 then if #sg>0 then
...@@ -154,7 +154,7 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -154,7 +154,7 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
Duel.SendtoHand(sg,nil,REASON_EFFECT) Duel.SendtoHand(sg,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,sg) Duel.ConfirmCards(1-tp,sg)
end end
end
end end
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