Skip to content

Commit da67263

Browse files
authored
"Witchcrafter Pupils" update
Use the target param instead of the label to determine which effect was activated.
1 parent db4b730 commit da67263

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

pre-release/c100455026.lua

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,10 @@ function s.efftg(e,tp,eg,ep,ev,re,r,rp,chk)
6969
e:SetCategory(0)
7070
Duel.ClearOperationInfo(0)
7171
end
72+
Duel.SetTargetParam(op)
7273
end
7374
function s.effop(e,tp,eg,ep,ev,re,r,rp)
74-
local op=e:GetLabel()
75+
local op=Duel.GetChainInfo(0,CHAININFO_TARGET_PARAM)
7576
if op==1 then
7677
--● Add 1 "Witchcrafter" Spell from your Deck to your hand
7778
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
@@ -105,4 +106,4 @@ function s.rtgop(e,tp,eg,ep,ev,re,r,rp)
105106
Duel.HintSelection(g)
106107
Duel.SendtoGrave(g,REASON_EFFECT)
107108
end
108-
end
109+
end

0 commit comments

Comments
 (0)