Commit a9049860 authored by POLYMER's avatar POLYMER

fix

parent 5081fb9a
...@@ -89,19 +89,20 @@ function c1171244.op2(e,tp,eg,ep,ev,re,r,rp) ...@@ -89,19 +89,20 @@ function c1171244.op2(e,tp,eg,ep,ev,re,r,rp)
end end
-- 3 -- 3
function c1171244.con3(e,tp,eg,ep,ev,re,r,rp) function c1171244.con3(e,tp,eg,ep,ev,re,r,rp)
return re:IsActiveType(TYPE_MONSTER) return re:IsActiveType(TYPE_MONSTER) and Duel.IsChainDisablable(ev)
end end
function c1171244.cost3(e,tp,eg,ep,ev,re,r,rp,chk) function c1171244.cost3(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():CheckRemoveOverlayCard(tp,1,REASON_COST) end if chk==0 then return e:GetHandler():CheckRemoveOverlayCard(tp,1,REASON_COST) end
e:GetHandler():RemoveOverlayCard(tp,1,1,REASON_COST) e:GetHandler():RemoveOverlayCard(tp,1,1,REASON_COST)
local ct=Duel.GetOperatedGroup():GetFirst()
e:SetLabelObject(ct)
end end
function c1171244.tg3(e,tp,eg,ep,ev,re,r,rp,chk) function c1171244.tg3(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
Duel.SetOperationInfo(0,CATEGORY_DISABLE,eg,1,0,0) Duel.SetOperationInfo(0,CATEGORY_DISABLE,eg,1,0,0)
end end
function c1171244.op3(e,tp,eg,ep,ev,re,r,rp) function c1171244.op3(e,tp,eg,ep,ev,re,r,rp)
if re:GetHandler():IsRelateToEffect(re) then if Duel.NegateEffect(ev) and re:GetHandler():IsRelateToEffect(re) then
Duel.NegateEffect(ev)
if re:GetHandler():IsRace(RACE_ZOMBIE) then if re:GetHandler():IsRace(RACE_ZOMBIE) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
......
...@@ -24,7 +24,7 @@ function cm.initial_effect(c) ...@@ -24,7 +24,7 @@ function cm.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function cm.spcfilter(c) function cm.spcfilter(c)
return c:IsRace(RACE_INSECT) and c:IsAbleToDeckOrExtraAsCost() return c:IsRace(RACE_INSECT) and c:IsAbleToDeckOrExtraAsCost() and c:IsFaceup()
end end
function cm.spcon(e,c) function cm.spcon(e,c)
if c==nil then return true end if c==nil then return true end
......
...@@ -29,7 +29,7 @@ function s.initial_effect(c) ...@@ -29,7 +29,7 @@ function s.initial_effect(c)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function s.cfilter1(c,tp) function s.cfilter1(c,tp)
return aux.IsCodeListed(c,id) return aux.IsCodeListed(c,id) and c:IsType(TYPE_MONSTER)
end end
function s.spcost(e,tp,eg,ep,ev,re,r,rp,chk) function s.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckReleaseGroup(tp,s.cfilter1,1,nil,tp) end if chk==0 then return Duel.CheckReleaseGroup(tp,s.cfilter1,1,nil,tp) end
......
...@@ -97,7 +97,7 @@ end ...@@ -97,7 +97,7 @@ end
function cm.destg2(e,tp,eg,ep,ev,re,r,rp,chk) function cm.destg2(e,tp,eg,ep,ev,re,r,rp,chk)
local g=Duel.GetFieldGroup(tp,0,LOCATION_HAND) local g=Duel.GetFieldGroup(tp,0,LOCATION_HAND)
local gc=g:GetCount() local gc=g:GetCount()
if chk==0 then return gc>0 and g:FilterCount(Card.IsAbleToRemove,nil)==gc and Duel.IsPlayerCanDraw(1-tp) end if chk==0 then return gc>0 and g:FilterCount(Card.IsAbleToRemove,nil)==gc and Duel.IsPlayerCanDraw(1-tp,gc) end
Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription()) Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription())
Duel.SetOperationInfo(0,CATEGORY_REMOVE,g,gc,0,0) Duel.SetOperationInfo(0,CATEGORY_REMOVE,g,gc,0,0)
Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,1-tp,gc) Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,1-tp,gc)
......
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