Commit d77e360a authored by Amiya's avatar Amiya

修复

parent a724724a
No preview for this file type
......@@ -69,6 +69,7 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget()
if c:IsRelateToEffect(e) and aux.NecroValleyFilter()(c) and Duel.SendtoDeck(c,nil,SEQ_DECKBOTTOM,REASON_EFFECT)~=0 and c:IsLocation(LOCATION_DECK)
and tc:IsRelateToEffect(e) and aux.NecroValleyFilter()(tc) then
Duel.ShuffleHand(tc,nil,REASON_EFFECT)
Duel.SendtoHand(tc,nil,REASON_EFFECT)
Duel.ShuffleHand()
end
end
\ No newline at end of file
......@@ -77,7 +77,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
tc:CompleteProcedure()
end
if not e:IsHasType(EFFECT_TYPE_ACTIVATE) then return end
local e1=Effect.CreateEffect(c)
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
......
......@@ -14,7 +14,7 @@ function s.initial_effect(c)
c:RegisterEffect(e1)
end
function s.negfilter(c)
return aux.NegateAnyFilter(c) and c:IsType(TYPE_SPELL+TYPE_TRAP)
return aux.NegateAnyFilter(c) and c:IsType(TYPE_SPELL)
end
function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsOnField() and s.negfilter(chkc) end
......@@ -42,7 +42,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
if Duel.IsExistingMatchingCard(s.tdfilter,tp,LOCATION_GRAVE+LOCATION_REMOVED,0,1,nil)
and Duel.SelectYesNo(tp,aux.Stringid(id,1)) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
local gs=Duel.SelectMatchingCard(tp,s.tdfilter,tp,LOCATION_GRAVE+LOCATION_REMOVED,0,1,1,nil)
local sg=Duel.SelectMatchingCard(tp,s.tdfilter,tp,LOCATION_GRAVE+LOCATION_REMOVED,0,1,1,nil)
local dtc=sg:GetFirst()
if dtc and Duel.SendtoDeck(dtc,nil,SEQ_DECKBOTTOM,REASON_EFFECT)>0
and dtc:IsLocation(LOCATION_DECK+LOCATION_EXTRA) then
......
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