Skip to content

Commit 8d99b28

Browse files
authored
fix "Miracle Raven"
- its search effect should be hard once per turn - had mismatched parameter names in the target and operation, causing `chk` to be improperly checked
1 parent 1513ff0 commit 8d99b28

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

pre-release/c101301084.lua

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ function s.initial_effect(c)
4040
e4:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
4141
e4:SetProperty(EFFECT_FLAG_DELAY)
4242
e4:SetCode(EVENT_RELEASE)
43+
e4:SetCountLimit(1,id)
4344
e4:SetCondition(function(e) return e:GetHandler():IsReason(REASON_RITUAL) end)
4445
e4:SetTarget(s.thtg)
4546
e4:SetOperation(s.thop)
@@ -49,15 +50,15 @@ s.listed_names={id}
4950
function s.thfilter(c)
5051
return c:IsRitualMonster() and c:IsAbleToHand()
5152
end
52-
function s.thtg(e,tp,eg,ep,ev,r,rp,chk)
53+
function s.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
5354
if chk==0 then return Duel.IsExistingMatchingCard(s.thfilter,tp,LOCATION_DECK,0,1,nil) end
5455
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
5556
end
56-
function s.thop(e,tp,eg,ep,ev,r,rp)
57+
function s.spop(e,tp,eg,ep,ev,re,r,rp)
5758
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
5859
local g=Duel.SelectMatchingCard(tp,s.thfilter,tp,LOCATION_DECK,0,1,1,nil)
5960
if #g>0 then
6061
Duel.SendtoHand(g,nil,REASON_EFFECT)
6162
Duel.ConfirmCards(1-tp,g)
6263
end
63-
end
64+
end

0 commit comments

Comments
 (0)