Skip to content

Commit

Permalink
"Magikey Mechmusket - Batosbuster" fix
Browse files Browse the repository at this point in the history
Fixed a bug where it would not return cards from the hand to the deck
  • Loading branch information
NaimSantos committed Feb 2, 2025
1 parent 5ed9083 commit 61fa8e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions official/c19489718.lua
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp)
local hg=Duel.GetFieldGroup(tp,LOCATION_HAND,0)
if #hg==0 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
local g=Duel.SelectMatchingCard(tp,Card.IsAbleToDeck,tp,LOCATION_HAND,0,1,hg,nil)
local g=Duel.SelectMatchingCard(tp,Card.IsAbleToDeck,tp,LOCATION_HAND,0,1,#hg,nil)
if #g>0 and Duel.SendtoDeck(g,tp,SEQ_DECKBOTTOM,REASON_EFFECT)>0 and g:FilterCount(Card.IsLocation,LOCATION_DECK)==#g
and tc and tc:IsRelateToBattle() and tc:IsFaceup() and tc:IsControler(1-tp)
and not tc:IsImmuneToEffect(e) and not tc:IsStatus(STATUS_DISABLED) then
Expand All @@ -82,4 +82,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp)
Duel.BreakEffect()
Duel.Draw(tp,#g,REASON_EFFECT)
end
end
end

0 comments on commit 61fa8e7

Please sign in to comment.