Commit 5a7a0e74 authored by POLYMER's avatar POLYMER

fix

parent 71023ac6
...@@ -57,17 +57,16 @@ function cm.op(e,tp,eg,ep,ev,re,r,rp) ...@@ -57,17 +57,16 @@ function cm.op(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
Duel.Hint(HINT_CARD,0,m) Duel.Hint(HINT_CARD,0,m)
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EVENT_CHAINING) --[[e1:SetCode(EVENT_CHAINING)
--e1:SetProperty(EFFECT_FLAG_IGNORE_IMMUNE)
e1:SetCondition(cm.recon) e1:SetCondition(cm.recon)
e1:SetOperation(cm.reop) e1:SetOperation(cm.reop)--]]
--[[e1:SetType(EFFECT_TYPE_FIELD) e1:SetProperty(EFFECT_FLAG_IGNORE_IMMUNE)
e1:SetCode(EFFECT_ACTIVATE_COST) e1:SetCode(EFFECT_ACTIVATE_COST)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET) e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetTargetRange(1,1) e1:SetTargetRange(1,1)
e1:SetTarget(cm.actarget2) e1:SetTarget(cm.actarget2)
e1:SetOperation(cm.costop2)--]] e1:SetOperation(cm.costop2)
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e1,tp)
local eid=e1:GetFieldID() local eid=e1:GetFieldID()
e1:SetLabel(eid) e1:SetLabel(eid)
...@@ -186,14 +185,15 @@ function cm.drtg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -186,14 +185,15 @@ function cm.drtg(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function cm.drop(e,tp,eg,ep,ev,re,r,rp) function cm.drop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if c:IsRelateToEffect(e) then Duel.SSet(tp,c) end if c:IsRelateToEffect(e) and Duel.SSet(tp,c)>0 then
local ct=Duel.GetCounter(tp,1,1,0x1972) local ct=Duel.GetCounter(tp,1,1,0x1972)
if ct>0 then if ct>1 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local rg=Duel.SelectMatchingCard(tp,Card.IsAbleToRemove,tp,LOCATION_ONFIELD+LOCATION_GRAVE,LOCATION_ONFIELD+LOCATION_GRAVE,1,ct,nil) local rg=Duel.SelectMatchingCard(tp,Card.IsAbleToRemove,tp,LOCATION_ONFIELD+LOCATION_GRAVE,LOCATION_ONFIELD+LOCATION_GRAVE,ct//2,ct//2,nil)
if #rg>0 then if #rg>0 then
Duel.HintSelection(rg) Duel.HintSelection(rg)
Duel.Remove(rg,POS_FACEUP,REASON_EFFECT) Duel.Remove(rg,POS_FACEUP,REASON_EFFECT)
end
end end
end end
end end
\ No newline at end of file
This diff is collapsed.
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