Commit f4dc75d7 authored by Nemo Ma's avatar Nemo Ma

fix

parent c18efa53
......@@ -47,7 +47,7 @@ function cm.spfilter(c)
return c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsAbleToGraveAsCost()
end
function cm.thfilter(c)
return c:IsRace(RACE_INSECT) and c:GetOriginalType()&0x1==0x1
return c:IsRace(RACE_INSECT) and c:GetOriginalType()&0x1>0
end
function cm.spcon(e,c)
if c==nil then return true end
......@@ -62,7 +62,7 @@ function cm.con(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetType()==TYPE_SPELL
end
function cm.tg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.thfilter,tp,LOCATION_HAND+LOCATION_GRAVE+LOCATION_ONFIELD,0,1,e:GetHandler()) end
if chk==0 then return Duel.IsExistingMatchingCard(cm.thfilter,tp,LOCATION_HAND+LOCATION_GRAVE+LOCATION_ONFIELD,0,1,nil) end
end
function cm.op(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
......@@ -71,7 +71,7 @@ function cm.op(e,tp,eg,ep,ev,re,r,rp)
return
end
Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(m,0))
local g=Duel.SelectMatchingCard(tp,cm.thfilter,tp,LOCATION_HAND+LOCATION_GRAVE+LOCATION_ONFIELD,0,1,1,aux.ExceptThisCard(e))
local g=Duel.SelectMatchingCard(tp,cm.thfilter,tp,LOCATION_HAND+LOCATION_GRAVE+LOCATION_ONFIELD,0,1,1,nil)
if #g==0 then return end
local tc=g:GetFirst()
--if tc==c then c:CancelToGrave() end
......
......@@ -14,7 +14,7 @@ function c98921015.tgfilter(c,tp)
return c:IsAbleToGrave() and Duel.IsExistingMatchingCard(c98921015.thfilter,tp,LOCATION_DECK,0,1,nil,c:GetLevel())
end
function c98921015.thfilter(c,lv)
return (c:IsSetCard(0xb4) and c:IsType(TYPE_MONSTER)) and c:IsLevel(lv) and c:IsAbleToHand()
return (c:IsSetCard(0xb4) and c:IsType(TYPE_MONSTER) and c:IsType(TYPE_RITUAL)) and c:IsLevel(lv) and c:IsAbleToHand()
end
function c98921015.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c98921015.tgfilter,tp,LOCATION_EXTRA,0,1,nil,tp) 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