Skip to content

Commit 2eb5244

Browse files
committed
"Neo Flamvell Hedgehog" fix
Fixed a bug where the second effect could target a Link monster
1 parent 3455bd9 commit 2eb5244

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

official/c2377034.lua

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
--Neo Flamvell Hedgehog
33
local s,id=GetID()
44
function s.initial_effect(c)
5-
--remove
5+
--Banish 1 card in your opponent's GY
66
local e1=Effect.CreateEffect(c)
77
e1:SetDescription(aux.Stringid(id,0))
88
e1:SetCategory(CATEGORY_REMOVE)
@@ -12,7 +12,7 @@ function s.initial_effect(c)
1212
e1:SetTarget(s.rmtg)
1313
e1:SetOperation(s.rmop)
1414
c:RegisterEffect(e1)
15-
--destroyed
15+
--Add to your hand 1 FIRE monster with 200 or less DEF from your GY
1616
local e2=Effect.CreateEffect(c)
1717
e2:SetDescription(aux.Stringid(id,1))
1818
e2:SetCategory(CATEGORY_TOHAND)
@@ -24,6 +24,7 @@ function s.initial_effect(c)
2424
e2:SetOperation(s.thop)
2525
c:RegisterEffect(e2)
2626
end
27+
s.listed_names={id}
2728
function s.rmfilter(c)
2829
return c:IsAbleToRemove() and aux.SpElimFilter(c)
2930
end
@@ -45,7 +46,7 @@ function s.thcon(e,tp,eg,ep,ev,re,r,rp)
4546
end
4647
function s.filter(c)
4748
local def=c:GetDefense()
48-
return def>=0 and def<=200 and c:IsAttribute(ATTRIBUTE_FIRE) and c:GetCode()~=id and c:IsAbleToHand()
49+
return def>=0 and def<=200 and c:IsAttribute(ATTRIBUTE_FIRE) and not c:IsLinkMonster() and c:IsAbleToHand() and not c:IsCode(id)
4950
end
5051
function s.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
5152
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and s.filter(chkc) end
@@ -60,4 +61,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp)
6061
Duel.SendtoHand(tc,nil,REASON_EFFECT)
6162
Duel.ConfirmCards(1-tp,tc)
6263
end
63-
end
64+
end

0 commit comments

Comments
 (0)