Skip to content

Commit 5bbc415

Browse files
committed
update some cards to use chain data
1 parent e572018 commit 5bbc415

25 files changed

Lines changed: 233 additions & 279 deletions

official/c14532163.lua

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,20 @@ function s.destg(e,tp,eg,ep,ev,re,r,rp,chk)
2323
local b1=#g1>0
2424
local b2=#g2>0
2525
if chk==0 then return b1 or b2 end
26-
local op=Duel.SelectEffect(tp,
26+
local cd=e:GetChainData()
27+
cd.choice=Duel.SelectEffect(tp,
2728
{b1,aux.Stringid(id,0)},
2829
{b2,aux.Stringid(id,1)})
29-
e:SetLabel(op)
30-
local g=(op==1 and g1 or g2)
30+
local g=(cd.choice==1 and g1 or g2)
3131
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,#g,0,0)
3232
end
3333
function s.desop(e,tp,eg,ep,ev,re,r,rp)
34-
if e:GetLabel()==1 then
34+
local cd=e:GetChainData()
35+
if cd.choice==1 then
3536
local g=Duel.GetMatchingGroup(Card.IsAttackPos,tp,0,LOCATION_MZONE,nil)
3637
if #g>0 then Duel.Destroy(g,REASON_EFFECT) end
37-
else
38+
elseif cd.choice==2 then
3839
local g=Duel.GetMatchingGroup(Card.IsSpellTrap,tp,0,LOCATION_ONFIELD,nil)
3940
if #g>0 then Duel.Destroy(g,REASON_EFFECT) end
4041
end
41-
end
42+
end

official/c17151328.lua

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ function s.effcost(e,tp,eg,ep,ev,re,r,rp,chk)
3535
and Duel.IsExistingTarget(Card.IsFaceup,tp,0,LOCATION_MZONE,1,nil)
3636
local b2=Duel.IsExistingMatchingCard(Card.IsAttribute,tp,LOCATION_HAND,0,1,nil,ATTRIBUTE_FIRE)
3737
if chk==0 then return b1 or b2 end
38-
local op=Duel.SelectEffect(tp,
38+
local cd=e:GetChainData()
39+
cd.choice=Duel.SelectEffect(tp,
3940
{b1,aux.Stringid(id,2)},
4041
{b2,aux.Stringid(id,3)})
41-
e:SetLabel(op)
42-
if op==1 then
42+
if cd.choice==1 then
4343
Duel.DiscardHand(tp,s.discardcostfilter,1,1,REASON_DISCARD|REASON_COST)
4444
end
4545
end
@@ -48,36 +48,33 @@ function s.efftg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
4848
local b1=Duel.IsExistingTarget(Card.IsFaceup,tp,0,LOCATION_MZONE,1,nil)
4949
local b2=Duel.IsExistingMatchingCard(Card.IsAttribute,tp,LOCATION_HAND,0,1,nil,ATTRIBUTE_FIRE)
5050
if chk==0 then return b1 or b2 end
51-
local op=e:GetLabel()
52-
if op==0 then
53-
op=Duel.SelectEffect(tp,
51+
local cd=e:GetChainData()
52+
cd.choice=cd.choice
53+
or Duel.SelectEffect(tp,
5454
{b1,aux.Stringid(id,2)},
5555
{b2,aux.Stringid(id,3)})
56-
end
57-
e:SetLabel(0)
58-
Duel.SetTargetParam(op)
59-
if op==1 then
56+
if cd.choice==1 then
6057
e:SetCategory(CATEGORY_DESTROY)
6158
e:SetProperty(EFFECT_FLAG_CARD_TARGET)
6259
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
6360
local g=Duel.SelectTarget(tp,Card.IsFaceup,tp,0,LOCATION_MZONE,1,1,nil)
6461
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,1,tp,0)
65-
elseif op==2 then
62+
elseif cd.choice==2 then
6663
e:SetCategory(CATEGORY_DESTROY+CATEGORY_DRAW)
6764
e:SetProperty(0)
6865
Duel.SetOperationInfo(0,CATEGORY_DESTROY,nil,1,tp,LOCATION_HAND)
6966
Duel.SetPossibleOperationInfo(0,CATEGORY_DRAW,nil,0,tp,1)
7067
end
7168
end
7269
function s.effop(e,tp,eg,ep,ev,re,r,rp)
73-
local op=Duel.GetChainInfo(0,CHAININFO_TARGET_PARAM)
74-
if op==1 then
70+
local cd=e:GetChainData()
71+
if cd.choice==1 then
7572
--Destroy 1 face-up monster your opponent controls
7673
local tc=Duel.GetFirstTarget()
7774
if tc:IsRelateToEffect(e) then
7875
Duel.Destroy(tc,REASON_EFFECT)
7976
end
80-
elseif op==2 then
77+
elseif cd.choice==2 then
8178
--Destroy 1 FIRE monster in your hand, then you can draw 1 card
8279
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
8380
local g=Duel.SelectMatchingCard(tp,Card.IsAttribute,tp,LOCATION_HAND,0,1,1,nil,ATTRIBUTE_FIRE)
@@ -104,4 +101,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
104101
if tc:IsRelateToEffect(e) then
105102
Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP)
106103
end
107-
end
104+
end

official/c17209452.lua

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,14 @@ function s.efftg(e,tp,eg,ep,ev,re,r,rp,chk)
5858
local b1=Duel.IsExistingMatchingCard(Card.IsAbleToDeck,tp,0,LOCATION_GRAVE,1,nil)
5959
local b2=Duel.GetFieldGroupCount(tp,0,LOCATION_HAND)>0
6060
if chk==0 then return b1 or b2 end
61-
local op=Duel.SelectEffect(tp,
61+
local cd=e:GetChainData()
62+
cd.choice=Duel.SelectEffect(tp,
6263
{b1,aux.Stringid(id,2)},
6364
{b2,aux.Stringid(id,3)})
64-
e:SetLabel(op)
65-
if op==1 then
65+
if cd.choice==1 then
6666
e:SetCategory(CATEGORY_TODECK)
6767
Duel.SetOperationInfo(0,CATEGORY_TODECK,nil,1,1-tp,LOCATION_GRAVE)
68-
elseif op==2 then
68+
elseif cd.choice==2 then
6969
e:SetCategory(CATEGORY_SEARCH+CATEGORY_TOHAND)
7070
Duel.SetPossibleOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
7171
end
@@ -74,16 +74,16 @@ function s.thfilter(c)
7474
return c:IsSetCard(SET_KEWL_TUNE) and c:IsSpellTrap() and c:IsAbleToHand()
7575
end
7676
function s.effop(e,tp,eg,ep,ev,re,r,rp)
77-
local op=e:GetLabel()
78-
if op==1 then
77+
local cd=e:GetChainData()
78+
if cd.choice==1 then
7979
--● Place 1 card from your opponent's GY on the bottom of the Deck
8080
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
8181
local g=Duel.SelectMatchingCard(tp,Card.IsAbleToDeck,tp,0,LOCATION_GRAVE,1,1,nil)
8282
if #g>0 then
8383
Duel.HintSelection(g)
8484
Duel.SendtoDeck(g,nil,SEQ_DECKBOTTOM,REASON_EFFECT)
85-
end
86-
elseif op==2 then
85+
end
86+
elseif cd.choice==2 then
8787
--● Look at your opponent's hand, then you can add 1 "Kewl Tune" Spell/Trap from your Deck to your hand
8888
local g=Duel.GetFieldGroup(tp,0,LOCATION_HAND)
8989
if #g==0 then return end
@@ -99,4 +99,4 @@ function s.effop(e,tp,eg,ep,ev,re,r,rp)
9999
Duel.ConfirmCards(1-tp,hsg)
100100
end
101101
end
102-
end
102+
end

official/c20415050.lua

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,23 +31,19 @@ s.listed_names={id}
3131
function s.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
3232
if chk==0 then return true end
3333
local c=e:GetHandler()
34-
local with_cost=Duel.IsExistingMatchingCard(Card.IsAbleToGraveAsCost,tp,LOCATION_ONFIELD,0,1,c)
35-
if with_cost and Duel.SelectYesNo(tp,aux.Stringid(id,2)) then
34+
if Duel.IsExistingMatchingCard(Card.IsAbleToGraveAsCost,tp,LOCATION_ONFIELD,0,1,c)
35+
and Duel.SelectYesNo(tp,aux.Stringid(id,2)) then
3636
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
3737
local g=Duel.SelectMatchingCard(tp,Card.IsAbleToGraveAsCost,tp,LOCATION_ONFIELD,0,1,1,c)
3838
Duel.SendtoGrave(g,REASON_COST)
39-
e:SetLabel(1)
40-
else
41-
e:SetLabel(0)
39+
e:GetChainData().paid_cost=true
4240
end
4341
end
4442
function s.thfilter(c)
4543
return c:IsSetCard(SET_HECAHANDS) and c:IsMonster() and c:IsAbleToHand()
4644
end
4745
function s.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
4846
if chk==0 then return Duel.IsExistingMatchingCard(s.thfilter,tp,LOCATION_DECK,0,1,nil) end
49-
Duel.SetTargetParam(e:GetLabel())
50-
e:SetLabel(0)
5147
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
5248
end
5349
function s.setfilter(c)
@@ -59,7 +55,8 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp)
5955
if #g>0 and Duel.SendtoHand(g,nil,REASON_EFFECT)>0 then
6056
Duel.ConfirmCards(1-tp,g)
6157
Duel.ShuffleHand(tp)
62-
if Duel.GetChainInfo(0,CHAININFO_TARGET_PARAM)==1 and Duel.IsExistingMatchingCard(s.setfilter,tp,LOCATION_DECK,0,1,nil)
58+
if e:GetChainData().paid_cost
59+
and Duel.IsExistingMatchingCard(s.setfilter,tp,LOCATION_DECK,0,1,nil)
6360
and Duel.SelectYesNo(tp,aux.Stringid(id,3)) then
6461
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SET)
6562
local sg=Duel.SelectMatchingCard(tp,s.setfilter,tp,LOCATION_DECK,0,1,1,nil)
@@ -81,4 +78,4 @@ function s.drwop(e,tp,eg,ep,ev,re,r,rp)
8178
Duel.BreakEffect()
8279
Duel.DiscardHand(1-tp,nil,1,1,REASON_EFFECT|REASON_DISCARD)
8380
end
84-
end
81+
end

official/c21147203.lua

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,10 @@ function s.deckspcost(e,tp,eg,ep,ev,re,r,rp,chk)
5757
if chk==0 then return Duel.IsExistingMatchingCard(s.deckspcostfilter,tp,LOCATION_MZONE,0,1,nil,e,tp) end
5858
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
5959
local sc=Duel.SelectMatchingCard(tp,s.deckspcostfilter,tp,LOCATION_MZONE,0,1,1,nil,e,tp):GetFirst()
60-
e:SetLabel(sc:GetOriginalRace(),sc:GetOriginalAttribute(),sc:GetOriginalLevel())
60+
local cd=e:GetChainData()
61+
cd.race=sc:GetOriginalRace()
62+
cd.attribute=sc:GetOriginalAttribute()
63+
cd.level=sc:GetOriginalLevel()
6164
Duel.Remove(sc,POS_FACEUP,REASON_COST)
6265
end
6366
function s.decksptg(e,tp,eg,ep,ev,re,r,rp,chk)
@@ -66,10 +69,10 @@ function s.decksptg(e,tp,eg,ep,ev,re,r,rp,chk)
6669
end
6770
function s.deckspop(e,tp,eg,ep,ev,re,r,rp)
6871
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end
69-
local rac,att,lvl=e:GetLabel()
72+
local cd=e:GetChainData()
7073
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
71-
local g=Duel.SelectMatchingCard(tp,s.deckspfilter,tp,LOCATION_DECK,0,1,1,nil,e,tp,rac,att,lvl)
74+
local g=Duel.SelectMatchingCard(tp,s.deckspfilter,tp,LOCATION_DECK,0,1,1,nil,e,tp,cd.race,cd.attribute,cd.level)
7275
if #g>0 then
7376
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)
7477
end
75-
end
78+
end

official/c30271097.lua

Lines changed: 15 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ function s.effcost(e,tp,eg,ep,ev,re,r,rp,chk)
3333
and Duel.IsExistingMatchingCard(s.spconfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,1,nil)
3434
and Duel.IsExistingTarget(Card.IsCanBeSpecialSummoned,tp,LOCATION_GRAVE,LOCATION_GRAVE,1,nil,e,0,tp,false,false)
3535
if chk==0 then return b1 or b2 end
36-
local op=Duel.SelectEffect(tp,
36+
local cd=e:GetChainData()
37+
cd.choice=Duel.SelectEffect(tp,
3738
{b1,aux.Stringid(id,1)},
3839
{b2,aux.Stringid(id,2)})
39-
e:SetLabel(op)
40-
if op==1 then
40+
if cd.choice==1 then
4141
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
4242
local g=Duel.SelectMatchingCard(tp,s.descostfilter,tp,LOCATION_EXTRA,0,1,1,nil)
4343
Duel.SendtoGrave(g,REASON_COST)
@@ -46,10 +46,10 @@ end
4646
function s.efftg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
4747
local c=e:GetHandler()
4848
if chkc then
49-
local op=Duel.GetChainInfo(0,CHAININFO_TARGET_PARAM)
50-
if op==1 then
49+
local cd=e:GetChainData()
50+
if cd.choice==1 then
5151
return chkc:IsOnField() and chkc:IsFaceup() and chkc~=c
52-
elseif op==2 then
52+
elseif cd.choice==2 then
5353
return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsCanBeSpecialSummoned(e,0,tp,false,false)
5454
end
5555
end
@@ -61,23 +61,17 @@ function s.efftg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
6161
and Duel.IsExistingMatchingCard(s.spconfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,1,nil)
6262
and Duel.IsExistingTarget(Card.IsCanBeSpecialSummoned,tp,LOCATION_GRAVE,LOCATION_GRAVE,1,nil,e,0,tp,false,false)
6363
if chk==0 then return b1 or b2 end
64-
local op=nil
65-
local label=e:GetLabel()
66-
if label~=0 then
67-
op=label
68-
else
69-
op=Duel.SelectEffect(tp,
64+
local cd=e:GetChainData()
65+
cd.choice=cd.choice
66+
or Duel.SelectEffect(tp,
7067
{b1,aux.Stringid(id,1)},
7168
{b2,aux.Stringid(id,2)})
72-
end
73-
e:SetLabel(0)
74-
Duel.SetTargetParam(op)
75-
if op==1 then
69+
if cd.choice==1 then
7670
e:SetCategory(CATEGORY_DESTROY)
7771
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
7872
local g=Duel.SelectTarget(tp,Card.IsFaceup,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,1,c)
7973
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,1,tp,0)
80-
elseif op==2 then
74+
elseif cd.choice==2 then
8175
e:SetCategory(CATEGORY_SPECIAL_SUMMON)
8276
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
8377
local g=Duel.SelectTarget(tp,Card.IsCanBeSpecialSummoned,tp,LOCATION_GRAVE,LOCATION_GRAVE,1,1,nil,e,0,tp,false,false)
@@ -87,12 +81,12 @@ end
8781
function s.effop(e,tp,eg,ep,ev,re,r,rp)
8882
local tc=Duel.GetFirstTarget()
8983
if not tc:IsRelateToEffect(e) then return end
90-
local op=Duel.GetChainInfo(0,CHAININFO_TARGET_PARAM)
91-
if op==1 then
84+
local cd=e:GetChainData()
85+
if cd.choice==1 then
9286
--Send 1 monster that mentions "Fallen of Albaz" from your Extra Deck to the GY, then target 1 face-up card on the field; destroy it
9387
Duel.Destroy(tc,REASON_EFFECT)
94-
elseif op==2 then
88+
elseif cd.choice==2 then
9589
--If you have an "Ecclesia" monster in your field or GY: Target 1 monster in either GY; Special Summon it to your field
9690
Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP)
9791
end
98-
end
92+
end

official/c30291086.lua

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -30,31 +30,31 @@ function s.lvtg(e,tp,eg,ep,ev,re,r,rp,chk)
3030
if chk==0 then return c:HasLevel() and (#rmg>0 or #tgg>0) end
3131
e:SetCategory(0)
3232
e:SetProperty(0)
33-
local op=Duel.SelectEffect(tp,
33+
local cd=e:GetChainData()
34+
cd.choice=Duel.SelectEffect(tp,
3435
{#rmg>0,aux.Stringid(id,1)},
3536
{#tgg>0,aux.Stringid(id,2)})
36-
if op==1 then
37+
if cd.choice==1 then
3738
local rg=aux.SelectUnselectGroup(rmg,e,tp,1,2,s.attrescon,1,tp,HINTMSG_REMOVE)
3839
Duel.Remove(rg,POS_FACEUP,REASON_COST)
39-
local ct=Duel.GetOperatedGroup():FilterCount(Card.IsLocation,nil,LOCATION_REMOVED)
40-
e:SetLabel(op,ct)
41-
elseif op==2 then
40+
cd.banished_amount=Duel.GetOperatedGroup():FilterCount(Card.IsLocation,nil,LOCATION_REMOVED)
41+
elseif cd.choice==2 then
4242
e:SetCategory(CATEGORY_TOGRAVE)
4343
e:SetProperty(EFFECT_FLAG_CARD_TARGET)
4444
local tg=aux.SelectUnselectGroup(tgg,e,tp,1,2,s.attrescon,1,tp,HINTMSG_TOGRAVE)
4545
Duel.SetTargetCard(tg)
4646
Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,tg,#tg,0,0)
47-
e:SetLabel(2)
4847
end
4948
end
5049
function s.lvop(e,tp,eg,ep,ev,re,r,rp)
51-
local op,ct=e:GetLabel()
52-
if op==2 then
50+
local cd=e:GetChainData()
51+
local ct=cd.banished_amount
52+
if cd.choice==2 then
5353
local tg=Duel.GetTargetCards(e)
5454
if #tg>0 then
5555
ct=Duel.SendtoGrave(tg,REASON_EFFECT|REASON_RETURN)
5656
end
57-
elseif op~=1 then return end
57+
elseif cd.choice~=1 then return end
5858
if not ct or ct==0 then return end
5959
local c=e:GetHandler()
6060
if not (c:IsRelateToEffect(e) and c:IsFaceup() and c:HasLevel()) then return end
@@ -66,4 +66,4 @@ function s.lvop(e,tp,eg,ep,ev,re,r,rp)
6666
if lvop then
6767
c:UpdateLevel(lvop==1 and ct or -ct,RESETS_STANDARD_DISABLE_PHASE_END)
6868
end
69-
end
69+
end

official/c33008376.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ function s.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
3535
if chk==0 then return Duel.IsExistingMatchingCard(s.spcostfilter,tp,LOCATION_HAND,0,1,nil,e,tp) end
3636
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DISCARD)
3737
local sc=Duel.SelectMatchingCard(tp,s.spcostfilter,tp,LOCATION_HAND,0,1,1,nil,e,tp):GetFirst()
38-
e:SetLabel(sc:IsType(TYPE_NORMAL) and 1 or 0)
38+
e:GetChainData().banished_normal=sc:IsType(TYPE_NORMAL)
3939
Duel.SendtoGrave(sc,REASON_COST|REASON_DISCARD)
4040
end
4141
function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
@@ -45,8 +45,8 @@ end
4545
function s.spop(e,tp,eg,ep,ev,re,r,rp)
4646
if Duel.GetLocationCount(tp,LOCATION_MZONE)==0 then return end
4747
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
48-
local g=Duel.SelectMatchingCard(tp,s.spfilter,tp,LOCATION_HAND|LOCATION_DECK,0,1,1,nil,e,tp,e:GetLabel()==1)
48+
local g=Duel.SelectMatchingCard(tp,s.spfilter,tp,LOCATION_HAND|LOCATION_DECK,0,1,1,nil,e,tp,e:GetChainData().banished_normal)
4949
if #g>0 then
5050
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)
5151
end
52-
end
52+
end

official/c34568783.lua

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,22 +34,23 @@ function s.attrcost(e,tp,eg,ep,ev,re,r,rp,chk)
3434
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
3535
local sc=Duel.SelectMatchingCard(tp,s.attrcfilter,tp,LOCATION_GRAVE,0,1,1,nil,attr):GetFirst()
3636
Duel.Remove(sc,POS_FACEUP,REASON_COST)
37-
local tn_chk=sc:IsType(TYPE_TUNER) and 1 or 0
38-
e:SetLabel(sc:GetAttribute(),tn_chk)
37+
local cd=e:GetChainData()
38+
cd.attribute=sc:GetAttribute()
39+
cd.banished_tuner=sc:IsType(TYPE_TUNER)
3940
end
4041
function s.attrop(e,tp,eg,ep,ev,re,r,rp)
4142
local c=e:GetHandler()
4243
if not (c:IsFaceup() and c:IsRelateToEffect(e)) then return end
43-
local attr,tn_chk=e:GetLabel()
44-
if c:IsAttribute(attr) then return end
44+
local cd=e:GetChainData()
45+
if c:IsAttribute(cd.attribute) then return end
4546
--This card gains that monster's Attribute
4647
local e1=Effect.CreateEffect(c)
4748
e1:SetType(EFFECT_TYPE_SINGLE)
4849
e1:SetCode(EFFECT_ADD_ATTRIBUTE)
49-
e1:SetValue(attr)
50+
e1:SetValue(cd.attribute)
5051
e1:SetReset(RESET_EVENT|RESETS_STANDARD_DISABLE)
5152
c:RegisterEffect(e1)
52-
if tn_chk==0 then return end
53+
if not cd.banished_tuner then return end
5354
Duel.BreakEffect()
5455
--Can be treated as a Tuner this turn
5556
local e2=Effect.CreateEffect(c)
@@ -100,4 +101,4 @@ end
100101
function s.rmtg(e,c)
101102
local tp=e:GetHandlerPlayer()
102103
return c:GetOwner()==tp and Duel.IsPlayerCanRemove(tp,c)
103-
end
104+
end

0 commit comments

Comments
 (0)