Commit 9f4adb4c authored by mercury233's avatar mercury233 Committed by GitHub

fix

parent 68a3de27
...@@ -26,7 +26,10 @@ function c95816395.regop(e,tp,eg,ep,ev,re,r,rp) ...@@ -26,7 +26,10 @@ function c95816395.regop(e,tp,eg,ep,ev,re,r,rp)
end end
function c95816395.filter(c,tp) function c95816395.filter(c,tp)
return c:IsType(TYPE_MONSTER) and c:IsAbleToHand() return c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
and not Duel.IsExistingMatchingCard(Card.IsLevel,tp,LOCATION_MZONE+LOCATION_GRAVE,0,1,nil,c:GetLevel()) and not Duel.IsExistingMatchingCard(c95816395.cfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,1,nil,c:GetLevel())
end
function c95816395.cfilter(c,lv)
return (c:IsFaceup() or c:IsLocation(LOCATION_GRAVE)) and c:IsLevel(lv)
end end
function c95816395.thtg(e,tp,eg,ep,ev,re,r,rp,chk) function c95816395.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c95816395.filter,tp,LOCATION_DECK,0,1,nil,tp) end if chk==0 then return Duel.IsExistingMatchingCard(c95816395.filter,tp,LOCATION_DECK,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