Skip to content

Commit fd8d69c

Browse files
authored
"Dark Necromancer" fix
Fixed a bug where it would not be able to send a monster from the hand to the GY
1 parent 9132ddb commit fd8d69c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pre-release/c101207081.lua

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,16 @@ function s.tgfilter(c)
3333
return c:IsRace(RACE_FIEND|RACE_ZOMBIE) and c:IsRitualMonster() and c:IsAbleToGrave()
3434
end
3535
function s.tgtg(e,tp,eg,ep,ev,re,r,rp,chk)
36-
if chk==0 then return Duel.IsExistingMatchingCard(s.tgfilter,tp,LOCATION_DECK,0,1,nil) end
36+
if chk==0 then return Duel.IsExistingMatchingCard(s.tgfilter,tp,LOCATION_HAND|LOCATION_DECK,0,1,nil) end
3737
Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,nil,1,tp,LOCATION_DECK)
38-
Duel.SetPossibleOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
38+
Duel.SetPossibleOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_HAND|LOCATION_DECK)
3939
end
4040
function s.thfilter(c)
4141
return c:IsRitualSpell() and c:IsAbleToHand()
4242
end
4343
function s.tgop(e,tp,eg,ep,ev,re,r,rp)
4444
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
45-
local tg=Duel.SelectMatchingCard(tp,s.tgfilter,tp,LOCATION_DECK,0,1,1,nil)
45+
local tg=Duel.SelectMatchingCard(tp,s.tgfilter,tp,LOCATION_HAND|LOCATION_DECK,0,1,1,nil)
4646
if #tg>0 and Duel.SendtoGrave(tg,REASON_EFFECT)>0 and tg:GetFirst():IsLocation(LOCATION_GRAVE)
4747
and Duel.IsExistingMatchingCard(s.thfilter,tp,LOCATION_DECK,0,1,nil)
4848
and Duel.SelectYesNo(tp,aux.Stringid(id,2)) then
@@ -70,4 +70,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
7070
if tc:IsRelateToEffect(e) then
7171
Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP)
7272
end
73-
end
73+
end

0 commit comments

Comments
 (0)