Commit 7ad461fb authored by GuGu's avatar GuGu

Update c17035200.lua

parent e0f55f5d
Pipeline #34667 passed with stage
in 8 seconds
......@@ -38,7 +38,7 @@ function cm.filter1(c,e,tp)
if Duel.IsExistingMatchingCard(cm.codefilter,tp,LOCATION_ONFIELD,0,1,nil) then
loc=loc+LOCATION_DECK
end
return c:IsSetCard(0x7f5) and Duel.GetMZoneCount(tp,c)>0
return c:IsSetCard(0x7f5) and Duel.GetMZoneCount(tp,c)>0 and c:IsType(TYPE_MONSTER)
and Duel.IsExistingMatchingCard(cm.filter2,tp,loc,0,1,nil,e,tp,c:GetCode())
end
function cm.filter2(c,e,tp,tcode)
......@@ -68,11 +68,11 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
end
end
function cm.cfilter2(c,tp)
return c:IsSetCard(0x97f5) and not c:IsPublic()
return c:IsSetCard(0x97f5) and not c:IsPublic() and c:IsType(TYPE_MONSTER)
and Duel.IsExistingMatchingCard(cm.cfilter3,tp,LOCATION_DECK,0,1,nil,c:GetCode())
end
function cm.cfilter3(c,code)
return c:IsSetCard(0x97f5) and not c:IsCode(code) and c:IsAbleToHand()
return c:IsSetCard(0x97f5) and not c:IsCode(code) and c:IsAbleToHand() and c:IsType(TYPE_MONSTER)
end
function cm.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.cfilter,tp,LOCATION_HAND,0,1,nil)
......
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