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)
g1=Duel.GetMatchingGroup(cm.tffilter,tp,LOCATION_REMOVED,0,nil)
if ct>=1 and #g1>0 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOFIELD)
local sg=Group.CreateGroup()
if not chk then
local sg=g1:Select(tp,1,ct,nil)
sg=g1:Select(tp,1,ct,nil)
else
sg=g1:CancelableSelect(tp,1,ct,nil)
end
......
......@@ -13,7 +13,7 @@ function s.activate(c)
e1:SetCountLimit(1,id+EFFECT_COUNT_CODE_OATH)
e1:SetTarget(s.target)
e1:SetOperation(s.operation)
c:AddEffect(e1)
c:RegisterEffect(e1)
end
function s.rlfilter(c)
return aux.IsCodeListed(c,47320301) and c:IsAttack(100) and c:IsReleasable(REASON_EFFECT)
......@@ -56,7 +56,7 @@ function s.atk_decrease(c)
e2:SetCost(aux.bfgcost)
e2:SetTarget(s.atktg)
e2:SetOperation(s.atkop)
c:AddEffect(e2)
c:RegisterEffect(e2)
end
function s.atkfilter(c)
return aux.IsCodeListed(c,47320301) and c:GetAttack()>0
......@@ -82,7 +82,7 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp)
e1:SetCode(EFFECT_UPDATE_ATTACK)
e1:SetValue(-atk)
e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
dc:AddEffect(e1)
dc:RegisterEffect(e1)
end
end
end
......@@ -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)
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)
local ct=c:RemoveOverlayCard(tp,1,#g,REASON_EFFECT)
local ct=c:RemoveOverlayCard(tp,1,#xg,REASON_EFFECT)
e:SetLabel(ct)
end
......
......@@ -4,7 +4,6 @@ function c98500320.initial_effect(c)
--to hand
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(98500320,0))
e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetProperty(EFFECT_FLAG_DELAY)
e1:SetCode(EVENT_SUMMON_SUCCESS)
......
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