Skip to content

Commit ed4bfa5

Browse files
authored
Update cards_specific_functions.lua
1 parent 2db6b2b commit ed4bfa5

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

cards_specific_functions.lua

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,12 @@ function Witchcrafter.CreateCostReplaceEffect(c)
289289
e:SetTargetRange(1,0)
290290
e:SetValue(function(base,extracon,e,tp)
291291
local c=e:GetHandler()
292-
return c:IsSetCard(SET_WITCHCRAFTER) and c:IsControler(tp) and c:IsLocation(LOCATION_MZONE)
292+
local trig_eff=Duel.GetChainInfo(0,CHAININFO_TRIGGERING_EFFECT)
293+
if not trig_eff or c:IsRelateToEffect(e) then
294+
return c:IsSetCard(SET_WITCHCRAFTER) and c:IsControler(tp) and c:IsLocation(LOCATION_MZONE)
295+
else
296+
return c:IsPreviousSetCard(SET_WITCHCRAFTER) and c:IsPreviousControler(tp) and c:IsPreviousLocation(LOCATION_MZONE)
297+
end
293298
end)
294299
return e
295300
end

0 commit comments

Comments
 (0)