Commit 2f1d2e8c authored by argon.sun's avatar argon.sun

bug fix

parent a9b1182c
...@@ -17,7 +17,7 @@ function c33034646.initial_effect(c) ...@@ -17,7 +17,7 @@ function c33034646.initial_effect(c)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function c33034646.filter(c) function c33034646.filter(c)
return c:IsFaceup() and c:IsSetCard(0x2b) return c:IsFaceup() and c:GetLevel()~=0 and c:IsSetCard(0x2b)
end end
function c33034646.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c33034646.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and c33034646.filter(chkc) end if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and c33034646.filter(chkc) end
......
...@@ -48,7 +48,7 @@ function c44508094.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -48,7 +48,7 @@ function c44508094.target(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function c44508094.operation(e,tp,eg,ep,ev,re,r,rp) function c44508094.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) Duel.NegateActivation(ev)
if e:GetHandler():IsRelateToEffect(re) then if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
e:GetHandler():RegisterFlagEffect(44508094,RESET_EVENT+0x1fe0000+RESET_PHASE+RESET_END,0,0) e:GetHandler():RegisterFlagEffect(44508094,RESET_EVENT+0x1fe0000+RESET_PHASE+RESET_END,0,0)
......
...@@ -17,7 +17,7 @@ function c69023354.initial_effect(c) ...@@ -17,7 +17,7 @@ function c69023354.initial_effect(c)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function c69023354.filter(c) function c69023354.filter(c)
return c:IsFaceup() and c:IsSetCard(0x2b) return c:IsFaceup() and c:GetLevel()~=0 and c:IsSetCard(0x2b)
end end
function c69023354.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c69023354.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and c69023354.filter(chkc) end if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and c69023354.filter(chkc) end
......
...@@ -34,15 +34,18 @@ function c94243005.initial_effect(c) ...@@ -34,15 +34,18 @@ function c94243005.initial_effect(c)
e4:SetOperation(c94243005.thop) e4:SetOperation(c94243005.thop)
c:RegisterEffect(e4) c:RegisterEffect(e4)
end end
function c94243005.ctfilter(c)
return c:IsFaceup() and c:IsType(TYPE_MONSTER)
end
function c94243005.ctop(e,tp,eg,ep,ev,re,r,rp) function c94243005.ctop(e,tp,eg,ep,ev,re,r,rp)
local ct=eg:FilterCount(Card.IsType,nil,TYPE_MONSTER) local ct=eg:FilterCount(c94243005.ctfilter,nil)
if ct>0 then if ct>0 then
e:GetHandler():AddCounter(0x13,ct) e:GetHandler():AddCounter(0x13,ct)
end end
end end
function c94243005.spfilter(c,e,tp) function c94243005.spfilter(c,e,tp)
local lv=c:GetLevel() local lv=c:GetLevel()
return lv>0 and Duel.IsCanRemoveCounter(tp,1,0,0x13,lv,REASON_COST) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return lv>0 and c:IsFaceup() and Duel.IsCanRemoveCounter(tp,1,0,0x13,lv,REASON_COST) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c94243005.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c94243005.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_REMOVED) and c94243005.spfilter(chkc,e,tp) end if chkc then return chkc:IsLocation(LOCATION_REMOVED) and c94243005.spfilter(chkc,e,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