Commit 666a5067 authored by POLYMER's avatar POLYMER

fix

parent c018f64b
...@@ -168,7 +168,7 @@ function cm.spcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -168,7 +168,7 @@ function cm.spcon(e,tp,eg,ep,ev,re,r,rp)
return ev==1-tp or ev==PLAYER_ALL return ev==1-tp or ev==PLAYER_ALL
end end
function cm.tgfilter(c,e) function cm.tgfilter(c,e)
return c:IsAbleToDeck() and c:IsCanBeEffectTarget(e) return c:IsAbleToDeck() and c:IsCanBeEffectTarget(e) and c:IsType(TYPE_MONSTER)
end end
function cm.xyzfilter1(c,g,tp) function cm.xyzfilter1(c,g,tp)
local all=Duel.GetMatchingGroup(nil,tp,LOCATION_MZONE,0,nil)-g local all=Duel.GetMatchingGroup(nil,tp,LOCATION_MZONE,0,nil)-g
......
...@@ -98,15 +98,15 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp) ...@@ -98,15 +98,15 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp)
if Duel.SendtoHand(sg,nil,REASON_EFFECT)>0 and sg:GetFirst():IsLocation(LOCATION_HAND) then if Duel.SendtoHand(sg,nil,REASON_EFFECT)>0 and sg:GetFirst():IsLocation(LOCATION_HAND) then
Duel.ConfirmCards(1-tp,sg) Duel.ConfirmCards(1-tp,sg)
local tc=sg:GetFirst() local tc=sg:GetFirst()
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetCode(EFFECT_CANNOT_ACTIVATE)
e1:SetTargetRange(1,0)
e1:SetValue(s.aclimit)
e1:SetLabel(tc:GetCode())
e1:SetReset(RESET_PHASE+PHASE_END)
if e:GetLabel()>0 then if e:GetLabel()>0 then
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetCode(EFFECT_CANNOT_ACTIVATE)
e1:SetTargetRange(1,0)
e1:SetValue(s.aclimit)
e1:SetLabel(tc:GetCode())
e1:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e1,tp)
end end
local g2=Duel.GetMatchingGroup(s.thfilter2,tp,LOCATION_DECK,0,nil,tc) local g2=Duel.GetMatchingGroup(s.thfilter2,tp,LOCATION_DECK,0,nil,tc)
......
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