Skip to content

Commit dd64dcb

Browse files
authored
fix "S-Force Retroactive"
its effect to replace the cost of "S-Force" monsters was not working (missed when updating cost replacement effects)
1 parent d5fd572 commit dd64dcb

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

official/c53782828.lua

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,14 @@ function s.initial_effect(c)
3434
c:RegisterEffect(e2)
3535
--Replace cost
3636
local e3=Effect.CreateEffect(c)
37-
e3:SetType(EFFECT_TYPE_FIELD)
3837
e3:SetDescription(aux.Stringid(id,1))
38+
e3:SetType(EFFECT_TYPE_FIELD)
3939
e3:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
40-
e3:SetCode(EFFECT_SFORCE_REPLACE)
40+
e3:SetCode(EFFECT_COST_REPLACE)
4141
e3:SetRange(LOCATION_GRAVE)
4242
e3:SetTargetRange(1,0)
4343
e3:SetCountLimit(1,{id,2})
44-
e3:SetCondition(s.repcon)
44+
e3:SetCondition(function(e) return e:GetHandler():IsAbleToRemoveAsCost() end)
4545
e3:SetValue(s.repval)
4646
e3:SetOperation(s.repop)
4747
c:RegisterEffect(e3)
@@ -97,15 +97,11 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp)
9797
end
9898
end
9999
end
100-
function s.repcon(e)
101-
return e:GetHandler():IsAbleToRemoveAsCost()
102-
end
103-
function s.repval(base,e,tp,eg,ep,ev,re,r,rp,chk)
100+
function s.repval(base,extracon,e,tp,eg,ep,ev,re,r,rp,chk)
104101
local c=e:GetHandler()
105102
return c:IsFaceup() and c:IsControler(tp) and c:IsLocation(LOCATION_MZONE)
106103
and c:IsSetCard(SET_S_FORCE)
107104
end
108105
function s.repop(base,e,tp,eg,ep,ev,re,r,rp)
109-
Duel.Hint(HINT_CARD,0,id)
110106
Duel.Remove(base:GetHandler(),POS_FACEUP,REASON_COST)
111-
end
107+
end

0 commit comments

Comments
 (0)