Skip to content

Commit f44a561

Browse files
committed
"Destruction Swordsman Fusion" fix
Fixed a bug where it would be possible to use an opponent's monster that was face-down as Fusion material
1 parent 2efd992 commit f44a561

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

official/c41940225.lua

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
local s,id=GetID()
44
function s.initial_effect(c)
55
--Activate
6-
local e1=Fusion.CreateSummonEff(c,aux.FilterBoolFunction(Card.ListsCodeAsMaterial,78193831),nil,s.fextra)
6+
local e1=Fusion.CreateSummonEff(c,aux.FilterBoolFunction(Card.ListsCodeAsMaterial,CARD_BUSTER_BLADER),nil,s.fextra)
77
e1:SetCountLimit(1,id)
88
c:RegisterEffect(e1)
9-
--tohand
9+
--Add this card to your hand
1010
local e2=Effect.CreateEffect(c)
1111
e2:SetDescription(aux.Stringid(id,1))
1212
e2:SetCategory(CATEGORY_TOHAND)
@@ -19,21 +19,21 @@ function s.initial_effect(c)
1919
c:RegisterEffect(e2)
2020
end
2121
function s.fcheck(tp,sg,fc)
22-
return sg:IsExists(aux.FilterBoolFunction(Card.IsSummonCode,fc,SUMMON_TYPE_FUSION,tp,78193831),1,nil)
22+
return sg:IsExists(aux.FilterBoolFunction(Card.IsSummonCode,fc,SUMMON_TYPE_FUSION,tp,CARD_BUSTER_BLADER),1,nil)
2323
end
2424
function s.fextra(e,tp,mg)
25-
return Duel.GetMatchingGroup(Fusion.IsMonsterFilter(Card.IsAbleToGrave),tp,0,LOCATION_MZONE,nil),s.fcheck
25+
return Duel.GetMatchingGroup(Fusion.IsMonsterFilter(aux.FaceupFilter(Card.IsAbleToGrave)),tp,0,LOCATION_MZONE,nil),s.fcheck
2626
end
2727
function s.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
2828
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsAbleToGraveAsCost,tp,LOCATION_HAND,0,1,nil) end
2929
Duel.DiscardHand(tp,Card.IsAbleToGraveAsCost,1,1,REASON_COST)
3030
end
3131
function s.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
3232
if chk==0 then return e:GetHandler():IsAbleToHand() end
33-
Duel.SetOperationInfo(0,CATEGORY_TOHAND,e:GetHandler(),1,0,0)
33+
Duel.SetOperationInfo(0,CATEGORY_TOHAND,e:GetHandler(),1,tp,0)
3434
end
3535
function s.thop(e,tp,eg,ep,ev,re,r,rp)
3636
if e:GetHandler():IsRelateToEffect(e) then
3737
Duel.SendtoHand(e:GetHandler(),nil,REASON_EFFECT)
3838
end
39-
end
39+
end

0 commit comments

Comments
 (0)