Skip to content

Commit c26b898

Browse files
authored
Unofficial script fixes
- Automatic Gearspring Machine: Also check that a Gearspring Counter(s) can be placed on this card + raise the event only after successfully placing a counter(s). - Gearspring Catapult: Also check that a Gearspring Counter can be placed on this card + raise the event only after successfully placing a counter. - Gearspring Spirit (Anime): Shouldn't be able to select a monster with 0 ATK. - Red Soul: Should only reduce the battle damage from battles involving the targeted monster. Shouldn't be usable in the Damage Step. Fixed the hint used when selecting cards to send to the GY.
1 parent ef61b3b commit c26b898

File tree

5 files changed

+125
-119
lines changed

5 files changed

+125
-119
lines changed

unofficial/c511002723.lua

Lines changed: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -4,68 +4,68 @@ local s,id=GetID()
44
function s.initial_effect(c)
55
--Activate
66
local e1=Effect.CreateEffect(c)
7-
e1:SetCategory(CATEGORY_ATKCHANGE)
7+
e1:SetDescription(aux.Stringid(id,0))
88
e1:SetType(EFFECT_TYPE_ACTIVATE)
9+
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
910
e1:SetCode(EVENT_FREE_CHAIN)
10-
e1:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DAMAGE_STEP)
11-
e1:SetHintTiming(TIMING_DAMAGE_STEP)
1211
e1:SetCost(s.cost)
1312
e1:SetTarget(s.target)
1413
e1:SetOperation(s.activate)
1514
c:RegisterEffect(e1)
1615
end
17-
function s.cfilter(c)
18-
return c:IsMonster() and c:IsAbleToGraveAsCost()
19-
end
2016
function s.cost(e,tp,eg,ep,ev,re,r,rp,chk)
21-
e:SetLabel(1)
22-
if chk==0 then return true end
17+
e:SetLabel(-100)
18+
if chk==0 then return Duel.IsExistingMatchingCard(aux.AND(Card.IsMonster,Card.IsAbleToGraveAsCost),tp,LOCATION_HAND,0,2,nil) end
19+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
20+
local g=Duel.SelectMatchingCard(tp,aux.AND(Card.IsMonster,Card.IsAbleToGraveAsCost),tp,LOCATION_HAND,0,2,2,nil)
21+
Duel.SendtoGrave(g,REASON_COST)
22+
e:SetLabel(g:GetSum(Card.GetAttack))
2323
end
2424
function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
2525
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) end
2626
if chk==0 then
27-
if e:GetLabel()~=1 then return false end
27+
local res=e:GetLabel()==-100
2828
e:SetLabel(0)
29-
return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_HAND,0,2,nil)
30-
and Duel.IsExistingTarget(aux.TRUE,tp,LOCATION_MZONE,0,1,nil)
29+
return res and Duel.IsExistingTarget(nil,tp,LOCATION_MZONE,0,1,nil)
3130
end
32-
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
33-
local g=Duel.SelectMatchingCard(tp,s.cfilter,tp,LOCATION_HAND,0,2,2,nil)
34-
local sum=g:GetSum(Card.GetAttack)
35-
Duel.SendtoGrave(g,REASON_COST)
36-
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TARGET)
37-
Duel.SelectTarget(tp,aux.TRUE,tp,LOCATION_MZONE,0,1,1,nil)
38-
Duel.SetTargetParam(sum)
31+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_APPLYTO)
32+
Duel.SelectTarget(tp,nil,tp,LOCATION_MZONE,0,1,1,nil)
3933
end
4034
function s.activate(e,tp,eg,ep,ev,re,r,rp)
4135
local tc=Duel.GetFirstTarget()
42-
if tc and tc:IsRelateToEffect(e) then
43-
local e1=Effect.CreateEffect(e:GetHandler())
44-
e1:SetType(EFFECT_TYPE_FIELD)
45-
e1:SetCode(EFFECT_CHANGE_DAMAGE)
46-
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
47-
e1:SetTargetRange(1,0)
48-
e1:SetValue(s.damval)
49-
e1:SetLabel(Duel.GetChainInfo(0,CHAININFO_TARGET_PARAM))
50-
e1:SetReset(RESET_PHASE+PHASE_END)
51-
Duel.RegisterEffect(e1,tp)
52-
local e2=Effect.CreateEffect(e:GetHandler())
53-
e2:SetType(EFFECT_TYPE_SINGLE)
54-
e2:SetProperty(EFFECT_FLAG_SET_AVAILABLE)
55-
e2:SetCode(EFFECT_INDESTRUCTABLE_BATTLE)
56-
e2:SetValue(1)
57-
e2:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
36+
if tc:IsRelateToEffect(e) then
37+
local c=e:GetHandler()
38+
--It cannot be destroyed by battle or card effects until the end of this turn
39+
local e1=Effect.CreateEffect(c)
40+
e1:SetDescription(aux.Stringid(id,1))
41+
e1:SetType(EFFECT_TYPE_SINGLE)
42+
e1:SetProperty(EFFECT_FLAG_CLIENT_HINT)
43+
e1:SetCode(EFFECT_INDESTRUCTABLE_BATTLE)
44+
e1:SetValue(1)
45+
e1:SetReset(RESETS_STANDARD_PHASE_END)
46+
tc:RegisterEffect(e1)
47+
local e2=e1:Clone()
48+
e2:SetCode(EFFECT_INDESTRUCTABLE_EFFECT)
5849
tc:RegisterEffect(e2)
59-
local e3=e2:Clone()
60-
e3:SetCode(EFFECT_INDESTRUCTABLE_EFFECT)
50+
--Reduce the battle damage you would take by the combined ATK of the monsters sent to the GY to activate this card
51+
local e3=Effect.CreateEffect(c)
52+
e3:SetType(EFFECT_TYPE_FIELD)
53+
e3:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
54+
e3:SetCode(EFFECT_CHANGE_DAMAGE)
55+
e3:SetRange(LOCATION_MZONE)
56+
e3:SetTargetRange(1,0)
57+
e3:SetValue(s.damval)
58+
e3:SetLabel(e:GetLabel())
59+
e3:SetReset(RESETS_STANDARD_PHASE_END)
6160
tc:RegisterEffect(e3)
6261
end
6362
end
6463
function s.damval(e,re,val,r,rp,rc)
65-
local dam=val-e:GetLabel()
66-
if dam>=0 then
64+
if r&REASON_BATTLE>0 then
65+
local dam=val-e:GetLabel()
66+
if dam<0 then dam=0 end
6767
return dam
6868
else
69-
return 0
69+
return val
7070
end
71-
end
71+
end

unofficial/c511002903.lua

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,22 @@
1-
--ネジマキのカタパルト
21
--Gearspring Catapult
3-
local GEARSPRING_COUNTER=0x107
42
local s,id=GetID()
53
function s.initial_effect(c)
6-
c:EnableCounterPermit(GEARSPRING_COUNTER)
4+
c:EnableCounterPermit(0x107)
75
--Activate
86
local e1=Effect.CreateEffect(c)
97
e1:SetType(EFFECT_TYPE_ACTIVATE)
108
e1:SetCode(EVENT_FREE_CHAIN)
119
c:RegisterEffect(e1)
12-
--During each of your Standby Phases, place 1 Gearspring Counter on this card
10+
--add counter
1311
local e2=Effect.CreateEffect(c)
1412
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
1513
e2:SetRange(LOCATION_SZONE)
1614
e2:SetCountLimit(1)
1715
e2:SetCode(EVENT_PHASE+PHASE_STANDBY)
18-
e2:SetCondition(function(e,tp) return Duel.GetTurnPlayer()==tp end)
16+
e2:SetCondition(s.ctcon)
1917
e2:SetOperation(s.ctop)
2018
c:RegisterEffect(e2)
21-
--Make 1 monster you control gain 500 ATK
19+
--gain atk
2220
local e3=Effect.CreateEffect(c)
2321
e3:SetDescription(aux.Stringid(id,0))
2422
e3:SetCategory(CATEGORY_ATKCHANGE)
@@ -30,14 +28,17 @@ function s.initial_effect(c)
3028
e3:SetOperation(s.atkop)
3129
c:RegisterEffect(e3)
3230
end
31+
function s.ctcon(e,tp,eg,ep,ev,re,r,rp)
32+
return Duel.GetTurnPlayer()==tp
33+
end
3334
function s.ctop(e,tp,eg,ep,ev,re,r,rp)
3435
local c=e:GetHandler()
35-
c:AddCounter(GEARSPRING_COUNTER,1)
36-
Duel.RaiseEvent(c,511002905,e,REASON_EFFECT,tp,tp,GEARSPRING_COUNTER)
36+
c:AddCounter(0x107,1)
37+
Duel.RaiseEvent(c,511002905,e,REASON_EFFECT,tp,tp,0x107)
3738
end
3839
function s.atkcost(e,tp,eg,ep,ev,re,r,rp,chk)
39-
if chk==0 then return e:GetHandler():IsCanRemoveCounter(tp,GEARSPRING_COUNTER,1,REASON_COST) end
40-
e:GetHandler():RemoveCounter(tp,GEARSPRING_COUNTER,1,REASON_COST)
40+
if chk==0 then return e:GetHandler():IsCanRemoveCounter(tp,0x107,1,REASON_COST) end
41+
e:GetHandler():RemoveCounter(tp,0x107,1,REASON_COST)
4142
end
4243
function s.atktg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
4344
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsFaceup() and chkc:IsControler(tp) end
@@ -51,7 +52,7 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp)
5152
local e1=Effect.CreateEffect(e:GetHandler())
5253
e1:SetType(EFFECT_TYPE_SINGLE)
5354
e1:SetCode(EFFECT_UPDATE_ATTACK)
54-
e1:SetReset(RESETS_STANDARD_PHASE_END)
55+
e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
5556
e1:SetValue(500)
5657
tc:RegisterEffect(e1)
5758
end

unofficial/c511002904.lua

Lines changed: 33 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
--自動ネジマキ機
21
--Automatic Gearspring Machine
3-
local GEARSPRING_COUNTER=0x107
42
local s,id=GetID()
53
function s.initial_effect(c)
6-
c:EnableCounterPermit(GEARSPRING_COUNTER)
4+
c:EnableCounterPermit(0x107)
75
--Activate
86
local e1=Effect.CreateEffect(c)
97
e1:SetCategory(CATEGORY_COUNTER)
@@ -12,65 +10,68 @@ function s.initial_effect(c)
1210
e1:SetTarget(s.target)
1311
e1:SetOperation(s.activate)
1412
c:RegisterEffect(e1)
15-
--During each of your Standby Phases, place 1 Gearspring Counter on this card
13+
--add counter
1614
local e2=Effect.CreateEffect(c)
17-
e2:SetDescription(aux.Stringid(id,1))
1815
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
19-
e2:SetCode(EVENT_PHASE+PHASE_STANDBY)
2016
e2:SetRange(LOCATION_SZONE)
2117
e2:SetCountLimit(1)
22-
e2:SetCondition(function(e,tp) return Duel.GetTurnPlayer()==tp end)
18+
e2:SetCode(EVENT_PHASE+PHASE_STANDBY)
19+
e2:SetCondition(s.ctcon)
2320
e2:SetOperation(s.ctop)
2421
c:RegisterEffect(e2)
25-
--Place Gearspring Counters on another card
26-
local e3=Effect.CreateEffect(c)
27-
e3:SetDescription(aux.Stringid(id,1))
28-
e3:SetCategory(CATEGORY_COUNTER)
29-
e3:SetType(EFFECT_TYPE_IGNITION)
30-
e3:SetRange(LOCATION_SZONE)
31-
e3:SetCost(s.plcost)
32-
e3:SetTarget(s.pltg)
33-
e3:SetOperation(s.plop)
34-
c:RegisterEffect(e3)
22+
--place
23+
local e4=Effect.CreateEffect(c)
24+
e4:SetCategory(CATEGORY_COUNTER)
25+
e4:SetDescription(aux.Stringid(47408488,1))
26+
e4:SetType(EFFECT_TYPE_IGNITION)
27+
e4:SetRange(LOCATION_SZONE)
28+
e4:SetCost(s.plcost)
29+
e4:SetTarget(s.pltg)
30+
e4:SetOperation(s.plop)
31+
c:RegisterEffect(e4)
3532
end
3633
function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
3734
if chk==0 then return true end
38-
Duel.SetOperationInfo(0,CATEGORY_COUNTER,nil,2,0,GEARSPRING_COUNTER)
35+
Duel.SetOperationInfo(0,CATEGORY_COUNTER,nil,2,0,0x107)
3936
end
4037
function s.activate(e,tp,eg,ep,ev,re,r,rp)
4138
local c=e:GetHandler()
4239
if c:IsRelateToEffect(e) then
43-
c:AddCounter(GEARSPRING_COUNTER,2)
44-
Duel.RaiseEvent(c,511002905,e,REASON_EFFECT,tp,tp,GEARSPRING_COUNTER)
40+
c:AddCounter(0x107,2)
41+
Duel.RaiseEvent(c,id+1,e,REASON_EFFECT,tp,tp,0x107)
4542
end
4643
end
44+
function s.ctcon(e,tp,eg,ep,ev,re,r,rp)
45+
return Duel.GetTurnPlayer()==tp
46+
end
4747
function s.ctop(e,tp,eg,ep,ev,re,r,rp)
4848
local c=e:GetHandler()
49-
c:AddCounter(GEARSPRING_COUNTER,1)
50-
Duel.RaiseEvent(c,511002905,e,REASON_EFFECT,tp,tp,GEARSPRING_COUNTER)
49+
c:AddCounter(0x107,1)
50+
Duel.RaiseSingleEvent(c,id+1,e,0,0,tp,0)
5151
end
5252
function s.plcost(e,tp,eg,ep,ev,re,r,rp,chk)
5353
if chk==0 then return e:GetHandler():IsAbleToGraveAsCost() end
54-
e:SetLabel(e:GetHandler():GetCounter(GEARSPRING_COUNTER))
54+
e:SetLabel(e:GetHandler():GetCounter(0x107))
5555
Duel.SendtoGrave(e:GetHandler(),REASON_COST)
5656
end
5757
function s.pltg(e,tp,eg,ep,ev,re,r,rp,chk)
58-
local c=e:GetHandler()
59-
local ct=c:GetCounter(GEARSPRING_COUNTER)
60-
if chk==0 then return ct>0 and Duel.IsExistingMatchingCard(Card.IsCanAddCounter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,c,GEARSPRING_COUNTER,ct)
58+
if chk==0 then
59+
local c=e:GetHandler()
60+
local ct=c:GetCounter(0x107)
61+
return ct>0 and Duel.IsExistingMatchingCard(Card.IsCanAddCounter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,c,0x107,ct)
6162
end
6263
Duel.SetTargetParam(e:GetLabel())
6364
e:SetLabel(0)
64-
Duel.SetOperationInfo(0,CATEGORY_COUNTER,nil,ct,0,GEARSPRING_COUNTER)
65+
Duel.SetOperationInfo(0,CATEGORY_COUNTER,nil,ct,0,0x107)
6566
end
6667
function s.plop(e,tp,eg,ep,ev,re,r,rp)
6768
local ct=Duel.GetChainInfo(0,CHAININFO_TARGET_PARAM)
68-
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_COUNTER)
69-
local g=Duel.SelectMatchingCard(tp,Card.IsCanAddCounter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,1,nil,GEARSPRING_COUNTER,ct)
69+
Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(73853830,1))
70+
local g=Duel.SelectMatchingCard(tp,Card.IsCanAddCounter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,1,nil,0x107,ct)
7071
local tc=g:GetFirst()
7172
if tc then
72-
Duel.HintSelection(g,true)
73-
tc:AddCounter(GEARSPRING_COUNTER,ct)
74-
Duel.RaiseEvent(c,511002905,e,REASON_EFFECT,tp,tp,GEARSPRING_COUNTER)
73+
Duel.HintSelection(g)
74+
tc:AddCounter(0x107,ct)
75+
Duel.RaiseEvent(tc,id+1,e,REASON_EFFECT,tp,tp,0x107)
7576
end
7677
end

unofficial/c511002905.lua

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,31 @@
1+
--ネジマキの爆弾
12
--Gearspring Exploder
23
local s,id=GetID()
4+
local COUNTER_GEARSPRING=0x107
35
function s.initial_effect(c)
4-
--activate
6+
--Inflict 800 damage to your opponent for each Gearspring Counter on your side of the field
57
local e1=Effect.CreateEffect(c)
8+
e1:SetDescription(aux.Stringid(id,0))
69
e1:SetCategory(CATEGORY_DAMAGE)
7-
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
810
e1:SetType(EFFECT_TYPE_ACTIVATE)
9-
e1:SetCode(id)
10-
e1:SetCondition(s.condition)
11+
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
12+
e1:SetCode(EVENT_CUSTOM+id)
13+
e1:SetCondition(function(e,tp,eg,ep,ev,re,r,rp) return Duel.IsTurnPlayer(tp) and eg:IsExists(Card.IsControler,1,nil,tp) end)
1114
e1:SetTarget(s.target)
1215
e1:SetOperation(s.activate)
1316
c:RegisterEffect(e1)
1417
end
15-
function s.condition(e,tp,eg,ep,ev,re,r,rp)
16-
return eg:IsExists(Card.IsControler,1,nil,tp) and Duel.GetTurnPlayer()==tp
17-
end
18+
s.counter_list={COUNTER_GEARSPRING}
1819
function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
19-
local ct=Duel.GetCounter(tp,1,0,0x107)
20+
local ct=Duel.GetCounter(tp,1,0,COUNTER_GEARSPRING)
2021
if chk==0 then return ct>0 end
2122
Duel.SetTargetPlayer(1-tp)
22-
Duel.SetTargetParam(ct*800)
2323
Duel.SetOperationInfo(0,CATEGORY_DAMAGE,nil,0,1-tp,ct*800)
2424
end
2525
function s.activate(e,tp,eg,ep,ev,re,r,rp)
26-
local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM)
27-
Duel.Damage(p,Duel.GetCounter(tp,1,0,0x107)*800,REASON_EFFECT)
28-
end
26+
local ct=Duel.GetCounter(tp,1,0,COUNTER_GEARSPRING)
27+
if ct>0 then
28+
local p=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER)
29+
Duel.Damage(p,ct*800,REASON_EFFECT)
30+
end
31+
end

unofficial/c511002906.lua

Lines changed: 25 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,48 @@
1-
--ネジマキシキガミ
1+
--ネジマキシキガミ (Anime)
2+
--Gearspring Spirit (Anime)
23
local s,id=GetID()
4+
local COUNTER_GEARSPRING=0x107
35
function s.initial_effect(c)
4-
--special summon
6+
--You can Special Summon this card (from your hand) by removing 3 Gearspring Counters from your side of the field
57
local e1=Effect.CreateEffect(c)
8+
e1:SetDescription(aux.Stringid(id,0))
69
e1:SetType(EFFECT_TYPE_FIELD)
7-
e1:SetCode(EFFECT_SPSUMMON_PROC)
810
e1:SetProperty(EFFECT_FLAG_UNCOPYABLE)
11+
e1:SetCode(EFFECT_SPSUMMON_PROC)
912
e1:SetRange(LOCATION_HAND)
1013
e1:SetCondition(s.spcon)
11-
e1:SetOperation(s.spop)
14+
e1:SetOperation(function(e,tp) Duel.RemoveCounter(tp,1,0,COUNTER_GEARSPRING,3,REASON_COST) end)
1215
c:RegisterEffect(e1)
13-
--0 atk
16+
--ake the ATK of 1 face-up monster your opponent controls 0 until the End Phase
1417
local e2=Effect.CreateEffect(c)
15-
e2:SetDescription(aux.Stringid(2137678,0))
18+
e2:SetDescription(aux.Stringid(id,1))
1619
e2:SetCategory(CATEGORY_ATKCHANGE)
1720
e2:SetType(EFFECT_TYPE_IGNITION)
1821
e2:SetRange(LOCATION_MZONE)
1922
e2:SetCountLimit(1)
20-
e2:SetTarget(s.target)
21-
e2:SetOperation(s.operation)
23+
e2:SetTarget(function(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(Card.HasNonZeroAttack,tp,0,LOCATION_MZONE,1,nil) end end)
24+
e2:SetOperation(s.atkop)
2225
c:RegisterEffect(e2)
2326
end
27+
s.counter_list={COUNTER_GEARSPRING}
2428
function s.spcon(e,c)
2529
if c==nil then return true end
26-
return Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0 and Duel.IsCanRemoveCounter(c:GetControler(),1,0,0x107,3,REASON_COST)
27-
end
28-
function s.spop(e,tp,eg,ep,ev,re,r,rp,c)
29-
Duel.RemoveCounter(tp,1,0,0x107,3,REASON_RULE)
30+
local tp=c:GetControler()
31+
return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
32+
and Duel.IsCanRemoveCounter(tp,1,0,COUNTER_GEARSPRING,3,REASON_COST)
3033
end
31-
function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
32-
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsFaceup,tp,0,LOCATION_MZONE,1,nil) end
33-
end
34-
function s.operation(e,tp,eg,ep,ev,re,r,rp)
35-
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
36-
local g=Duel.SelectMatchingCard(tp,Card.IsFaceup,tp,0,LOCATION_MZONE,1,1,nil)
37-
local tc=g:GetFirst()
38-
if tc then
39-
Duel.HintSelection(g)
34+
function s.atkop(e,tp,eg,ep,ev,re,r,rp)
35+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATKDEF)
36+
local sc=Duel.SelectMatchingCard(tp,Card.HasNonZeroAttack,tp,0,LOCATION_MZONE,1,1,nil):GetFirst()
37+
if sc then
38+
Duel.HintSelection(sc)
39+
--Its ATK becomes 0 until the end of the turn
4040
local e1=Effect.CreateEffect(e:GetHandler())
4141
e1:SetType(EFFECT_TYPE_SINGLE)
42+
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
4243
e1:SetCode(EFFECT_SET_ATTACK_FINAL)
4344
e1:SetValue(0)
44-
e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
45-
tc:RegisterEffect(e1)
45+
e1:SetReset(RESETS_STANDARD_PHASE_END)
46+
sc:RegisterEffect(e1)
4647
end
47-
end
48+
end

0 commit comments

Comments
 (0)