Commit 849cb7d0 authored by Nemo Ma's avatar Nemo Ma

fix

parent f9860fb7
...@@ -54,7 +54,7 @@ function c22348026.con(e,tp,eg,ep,ev,re,r,rp) ...@@ -54,7 +54,7 @@ function c22348026.con(e,tp,eg,ep,ev,re,r,rp)
return re and re:GetHandler():IsSetCard(0x613) return re and re:GetHandler():IsSetCard(0x613)
end end
function c22348026.filter1(c) function c22348026.filter1(c)
return c:IsType(TYPE_SPELL+TYPE_TRAP) return c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsFaceup()
end end
function c22348026.filter2(c) function c22348026.filter2(c)
return c:IsSetCard(0x613) and c:IsAbleToGrave() and c:IsType(TYPE_SPELL+TYPE_TRAP) return c:IsSetCard(0x613) and c:IsAbleToGrave() and c:IsType(TYPE_SPELL+TYPE_TRAP)
......
...@@ -127,7 +127,7 @@ function cm.effop(e,tp,eg,ep,ev,re,r,rp) ...@@ -127,7 +127,7 @@ function cm.effop(e,tp,eg,ep,ev,re,r,rp)
local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM)
Duel.Draw(p,d,REASON_EFFECT) Duel.Draw(p,d,REASON_EFFECT)
end end
if bit.band(sel,2)~=0 then if bit.band(sel,2)~=0 and c:IsRelateToEffect(e) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_XMATERIAL) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_XMATERIAL)
local g=Duel.SelectMatchingCard(tp,aux.TRUE,tp,0,LOCATION_ONFIELD,1,1,nil) local g=Duel.SelectMatchingCard(tp,aux.TRUE,tp,0,LOCATION_ONFIELD,1,1,nil)
if g:GetCount()>0 then if g:GetCount()>0 then
......
...@@ -88,7 +88,7 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp) ...@@ -88,7 +88,7 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local g=Duel.SelectMatchingCard(tp,cm.thfilter,tp,0,LOCATION_GRAVE,1,1,nil,tid) local g=Duel.SelectMatchingCard(tp,cm.thfilter,tp,0,LOCATION_GRAVE,1,1,nil,tid)
if #g>0 then if #g>0 then
Duel.SendtoHand(g:GetFirst(),nil,REASON_EFFECT) Duel.SendtoHand(g:GetFirst(),e:GetHandler():GetOwner(),REASON_EFFECT)
end end
end end
function cm.spcon(e,tp,eg,ep,ev,re,r,rp) function cm.spcon(e,tp,eg,ep,ev,re,r,rp)
......
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