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 properly negat the effects of the monster it battled with nor it would make the player draw the correct number of cards
  • Loading branch information
NaimSantos committed Feb 5, 2025
1 parent bc79b88 commit a8d5254
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion official/c19489718.lua
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp)
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)
if #g>0 and Duel.SendtoDeck(g,tp,SEQ_DECKBOTTOM,REASON_EFFECT)>0 and g:FilterCount(Card.IsLocation,LOCATION_DECK)==#g
if #g>0 and Duel.SendtoDeck(g,tp,SEQ_DECKBOTTOM,REASON_EFFECT)>0 and g:FilterCount(Card.IsLocation,nil,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
--Negate its effects, then draw cards equal to the number of cards placed under the Deck
Expand Down

0 comments on commit a8d5254

Please sign in to comment.