Commit 5eb86b37 authored by POLYMER's avatar POLYMER

fix

parent 1c35390d
...@@ -258,8 +258,9 @@ function cm.mvop(e,tp,eg,ep,ev,re,r,rp,opt,lab) ...@@ -258,8 +258,9 @@ function cm.mvop(e,tp,eg,ep,ev,re,r,rp,opt,lab)
g1=Duel.GetMatchingGroup(cm.tffilter,tp,LOCATION_REMOVED,0,nil) g1=Duel.GetMatchingGroup(cm.tffilter,tp,LOCATION_REMOVED,0,nil)
if ct>=1 and #g1>0 then if ct>=1 and #g1>0 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOFIELD) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOFIELD)
local sg=Group.CreateGroup()
if not chk then if not chk then
local sg=g1:Select(tp,1,ct,nil) sg=g1:Select(tp,1,ct,nil)
else else
sg=g1:CancelableSelect(tp,1,ct,nil) sg=g1:CancelableSelect(tp,1,ct,nil)
end end
......
...@@ -13,7 +13,7 @@ function s.activate(c) ...@@ -13,7 +13,7 @@ function s.activate(c)
e1:SetCountLimit(1,id+EFFECT_COUNT_CODE_OATH) e1:SetCountLimit(1,id+EFFECT_COUNT_CODE_OATH)
e1:SetTarget(s.target) e1:SetTarget(s.target)
e1:SetOperation(s.operation) e1:SetOperation(s.operation)
c:AddEffect(e1) c:RegisterEffect(e1)
end end
function s.rlfilter(c) function s.rlfilter(c)
return aux.IsCodeListed(c,47320301) and c:IsAttack(100) and c:IsReleasable(REASON_EFFECT) return aux.IsCodeListed(c,47320301) and c:IsAttack(100) and c:IsReleasable(REASON_EFFECT)
...@@ -56,7 +56,7 @@ function s.atk_decrease(c) ...@@ -56,7 +56,7 @@ function s.atk_decrease(c)
e2:SetCost(aux.bfgcost) e2:SetCost(aux.bfgcost)
e2:SetTarget(s.atktg) e2:SetTarget(s.atktg)
e2:SetOperation(s.atkop) e2:SetOperation(s.atkop)
c:AddEffect(e2) c:RegisterEffect(e2)
end end
function s.atkfilter(c) function s.atkfilter(c)
return aux.IsCodeListed(c,47320301) and c:GetAttack()>0 return aux.IsCodeListed(c,47320301) and c:GetAttack()>0
...@@ -82,7 +82,7 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) ...@@ -82,7 +82,7 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp)
e1:SetCode(EFFECT_UPDATE_ATTACK) e1:SetCode(EFFECT_UPDATE_ATTACK)
e1:SetValue(-atk) e1:SetValue(-atk)
e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
dc:AddEffect(e1) dc:RegisterEffect(e1)
end end
end end
end end
...@@ -69,7 +69,7 @@ function s.matcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -69,7 +69,7 @@ function s.matcost(e,tp,eg,ep,ev,re,r,rp,chk)
local xg=Duel.GetMatchingGroup(Card.IsCanOverlay,tp,0,LOCATION_ONFIELD+LOCATION_GRAVE,nil) local xg=Duel.GetMatchingGroup(Card.IsCanOverlay,tp,0,LOCATION_ONFIELD+LOCATION_GRAVE,nil)
if chk==0 then return c:GetOverlayCount()>0 and Duel.IsExistingMatchingCard(Card.IsCanOverlay,tp,0,LOCATION_ONFIELD+LOCATION_GRAVE,1,nil) end if chk==0 then return c:GetOverlayCount()>0 and Duel.IsExistingMatchingCard(Card.IsCanOverlay,tp,0,LOCATION_ONFIELD+LOCATION_GRAVE,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVEXYZ) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVEXYZ)
local ct=c:RemoveOverlayCard(tp,1,#g,REASON_EFFECT) local ct=c:RemoveOverlayCard(tp,1,#xg,REASON_EFFECT)
e:SetLabel(ct) e:SetLabel(ct)
end end
......
...@@ -4,7 +4,6 @@ function c98500320.initial_effect(c) ...@@ -4,7 +4,6 @@ function c98500320.initial_effect(c)
--to hand --to hand
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(98500320,0)) e1:SetDescription(aux.Stringid(98500320,0))
e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetProperty(EFFECT_FLAG_DELAY) e1:SetProperty(EFFECT_FLAG_DELAY)
e1:SetCode(EVENT_SUMMON_SUCCESS) e1:SetCode(EVENT_SUMMON_SUCCESS)
...@@ -36,7 +35,7 @@ function c98500320.initial_effect(c) ...@@ -36,7 +35,7 @@ function c98500320.initial_effect(c)
e5:SetCode(EVENT_FREE_CHAIN) e5:SetCode(EVENT_FREE_CHAIN)
e5:SetHintTiming(0,TIMINGS_CHECK_MONSTER) e5:SetHintTiming(0,TIMINGS_CHECK_MONSTER)
e5:SetRange(LOCATION_MZONE) e5:SetRange(LOCATION_MZONE)
e5:SetCountLimit(1) e5:SetCountLimit(1)
e5:SetTarget(c98500320.target) e5:SetTarget(c98500320.target)
e5:SetOperation(c98500320.operation) e5:SetOperation(c98500320.operation)
c:RegisterEffect(e5) c:RegisterEffect(e5)
...@@ -81,7 +80,7 @@ function c98500320.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -81,7 +80,7 @@ function c98500320.operation(e,tp,eg,ep,ev,re,r,rp)
e1:SetProperty(EFFECT_FLAG_IGNORE_IMMUNE) e1:SetProperty(EFFECT_FLAG_IGNORE_IMMUNE)
e1:SetValue(1) e1:SetValue(1)
e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
tc:RegisterEffect(e1) tc:RegisterEffect(e1)
-- 添加免疫效果破坏 -- 添加免疫效果破坏
local e2=Effect.CreateEffect(e:GetHandler()) local e2=Effect.CreateEffect(e:GetHandler())
e2:SetType(EFFECT_TYPE_SINGLE) e2:SetType(EFFECT_TYPE_SINGLE)
......
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