Commit 1fc2cc11 authored by argon.sun's avatar argon.sun

fix

parent e8649efc
...@@ -17,11 +17,11 @@ function c34187685.cost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -17,11 +17,11 @@ function c34187685.cost(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function c34187685.filter1(c,tp) function c34187685.filter1(c,tp)
local lv=c:GetOriginalLevel() local lv=c:GetOriginalLevel()
return lv>0 and c:IsDiscardable() and c:IsAbleToGraveAsCost() return lv>1 and c:IsDiscardable() and c:IsAbleToGraveAsCost()
and Duel.IsExistingTarget(c34187685.filter2,tp,LOCATION_MZONE,0,1,nil,lv) and Duel.IsExistingTarget(c34187685.filter2,tp,LOCATION_MZONE,0,1,nil,lv)
end end
function c34187685.filter2(c,lv) function c34187685.filter2(c,lv)
return c:IsFaceup() and c:IsLevelBelow(lv) return c:IsFaceup() and c:IsLevelBelow(lv-1)
end end
function c34187685.target(e,tp,eg,ep,ev,re,r,rp,chk) function c34187685.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then if chk==0 then
......
...@@ -71,7 +71,7 @@ function c98777036.ctffilter(c,lv) ...@@ -71,7 +71,7 @@ function c98777036.ctffilter(c,lv)
end end
function c98777036.ctfilter(c,tp) function c98777036.ctfilter(c,tp)
return c:IsType(TYPE_MONSTER) and c:IsAbleToGraveAsCost() return c:IsType(TYPE_MONSTER) and c:IsAbleToGraveAsCost()
and Duel.IsExistingMatchingCard(c98777036.ctffilter,tp,0,LOCATION_MZONE,1,nil,c:GetLevel()) and Duel.IsExistingTarget(c98777036.ctffilter,tp,0,LOCATION_MZONE,1,nil,c:GetLevel())
end end
function c98777036.ctcos(e,tp,eg,ep,ev,re,r,rp,chk) function c98777036.ctcos(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c98777036.ctfilter,tp,LOCATION_HAND,0,1,nil,tp) end if chk==0 then return Duel.IsExistingMatchingCard(c98777036.ctfilter,tp,LOCATION_HAND,0,1,nil,tp) end
...@@ -99,7 +99,7 @@ function c98777036.lvfilter(c) ...@@ -99,7 +99,7 @@ function c98777036.lvfilter(c)
return c:GetLevel()>0 return c:GetLevel()>0
end end
function c98777036.lvtar(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c98777036.lvtar(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:GetLocation()==LOCATION_GRAVE and chkc:IsType(TYPE_MONSTER) end if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_GRAVE) and chkc:IsType(TYPE_MONSTER) end
if chk==0 then return Duel.IsExistingTarget(c98777036.lvfilter,tp,LOCATION_GRAVE,0,1,nil) end if chk==0 then return Duel.IsExistingTarget(c98777036.lvfilter,tp,LOCATION_GRAVE,0,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TARGET) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TARGET)
Duel.SelectTarget(tp,c98777036.lvfilter,tp,LOCATION_GRAVE,0,1,1,nil) Duel.SelectTarget(tp,c98777036.lvfilter,tp,LOCATION_GRAVE,0,1,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