Skip to content

Commit 0d5f359

Browse files
authored
"The Phantom Knights of Ragged Gloves" update
Should only be able to send "The Phantom Knights" cards or "Phantom Knights" Spells/Traps to the GY in the OCG.
1 parent 006fb63 commit 0d5f359

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

official/c63821877.lua

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,18 @@
22
--The Phantom Knights of Ragged Gloves
33
local s,id=GetID()
44
function s.initial_effect(c)
5-
--An Xyz Monster that uses this card as material gains 1000 ATK
5+
--A DARK Xyz Monster that was Summoned using this card on the field as material gains this effect: ● If it is Xyz Summoned: It gains 1000 ATK.
66
local e1=Effect.CreateEffect(c)
77
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
8-
e1:SetCode(EVENT_BE_MATERIAL)
98
e1:SetProperty(EFFECT_FLAG_EVENT_PLAYER)
9+
e1:SetCode(EVENT_BE_MATERIAL)
1010
e1:SetCountLimit(1,id)
1111
e1:SetCondition(function(e,tp,eg,ep,ev,re,r,rp) return r==REASON_XYZ and e:GetHandler():GetReasonCard():IsAttribute(ATTRIBUTE_DARK) end)
12-
e1:SetOperation(s.efop)
12+
e1:SetOperation(s.effop)
1313
c:RegisterEffect(e1)
1414
--Send 1 "Phantom Knights" card from your Deck to the GY
1515
local e2=Effect.CreateEffect(c)
16-
e2:SetDescription(aux.Stringid(id,1))
16+
e2:SetDescription(aux.Stringid(id,0))
1717
e2:SetCategory(CATEGORY_TOGRAVE)
1818
e2:SetType(EFFECT_TYPE_IGNITION)
1919
e2:SetRange(LOCATION_GRAVE)
@@ -23,16 +23,17 @@ function s.initial_effect(c)
2323
e2:SetOperation(s.tgop)
2424
c:RegisterEffect(e2)
2525
end
26-
s.listed_series={SET_PHANTOM_KNIGHTS}
27-
function s.efop(e,tp,eg,ep,ev,re,r,rp)
26+
s.listed_series={SET_THE_PHANTOM_KNIGHTS,SET_PHANTOM_KNIGHTS}
27+
function s.effop(e,tp,eg,ep,ev,re,r,rp)
2828
local c=e:GetHandler()
2929
local rc=c:GetReasonCard()
30+
--● If it is Xyz Summoned: It gains 1000 ATK.
3031
local e1=Effect.CreateEffect(rc)
31-
e1:SetDescription(aux.Stringid(id,0))
32+
e1:SetDescription(aux.Stringid(id,1))
3233
e1:SetCategory(CATEGORY_ATKCHANGE)
3334
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F)
3435
e1:SetCode(EVENT_SPSUMMON_SUCCESS)
35-
e1:SetCondition(function (e) return e:GetHandler():IsXyzSummoned() end)
36+
e1:SetCondition(function(e) return e:GetHandler():IsXyzSummoned() end)
3637
e1:SetOperation(s.atkop)
3738
e1:SetReset(RESET_EVENT|RESETS_STANDARD)
3839
rc:RegisterEffect(e1,true)
@@ -52,7 +53,7 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp)
5253
end
5354
end
5455
function s.tgfilter(c)
55-
return c:IsSetCard(SET_PHANTOM_KNIGHTS) and c:IsAbleToGrave()
56+
return (c:IsSetCard(SET_THE_PHANTOM_KNIGHTS) or (c:IsSetCard(SET_PHANTOM_KNIGHTS) and c:IsSpellTrap())) and c:IsAbleToGrave()
5657
end
5758
function s.tgtg(e,tp,eg,ep,ev,re,r,rp,chk)
5859
if chk==0 then return Duel.IsExistingMatchingCard(s.tgfilter,tp,LOCATION_DECK,0,1,nil) end

0 commit comments

Comments
 (0)