Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-scripts-888
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Vee4
ygopro-scripts-888
Commits
f80b5d63
Commit
f80b5d63
authored
Jun 18, 2022
by
salix5
Committed by
GitHub
Jun 18, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix 電脳増幅器 (#1904)
parent
f6ac4136
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
49 additions
and
18 deletions
+49
-18
c303660.lua
c303660.lua
+4
-15
c77585513.lua
c77585513.lua
+45
-3
No files found.
c303660.lua
View file @
f80b5d63
...
@@ -17,15 +17,10 @@ function c303660.initial_effect(c)
...
@@ -17,15 +17,10 @@ function c303660.initial_effect(c)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e2
:
SetValue
(
c303660
.
eqlimit
)
e2
:
SetValue
(
c303660
.
eqlimit
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
--
immune
--
change effect
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetType
(
EFFECT_TYPE_EQUIP
)
e3
:
SetCode
(
EFFECT_IMMUNE_EFFECT
)
e3
:
SetCode
(
303660
)
e3
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
)
e3
:
SetRange
(
LOCATION_SZONE
)
e3
:
SetTargetRange
(
LOCATION_ONFIELD
,
LOCATION_ONFIELD
)
e3
:
SetTarget
(
c303660
.
etarget
)
e3
:
SetValue
(
c303660
.
efilter
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
--leave
--leave
local
e4
=
Effect
.
CreateEffect
(
c
)
local
e4
=
Effect
.
CreateEffect
(
c
)
...
@@ -37,6 +32,7 @@ function c303660.initial_effect(c)
...
@@ -37,6 +32,7 @@ function c303660.initial_effect(c)
local
e5
=
Effect
.
CreateEffect
(
c
)
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetType
(
EFFECT_TYPE_SINGLE
)
e5
:
SetType
(
EFFECT_TYPE_SINGLE
)
e5
:
SetCode
(
EFFECT_CANNOT_DISABLE
)
e5
:
SetCode
(
EFFECT_CANNOT_DISABLE
)
e5
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
c
:
RegisterEffect
(
e5
)
c
:
RegisterEffect
(
e5
)
end
end
function
c303660
.
eqlimit
(
e
,
c
)
function
c303660
.
eqlimit
(
e
,
c
)
...
@@ -58,13 +54,6 @@ function c303660.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -58,13 +54,6 @@ function c303660.operation(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Equip
(
tp
,
e
:
GetHandler
(),
tc
)
Duel
.
Equip
(
tp
,
e
:
GetHandler
(),
tc
)
end
end
end
end
function
c303660
.
etarget
(
e
,
c
)
local
ec
=
e
:
GetHandler
():
GetEquipTarget
()
return
c
:
IsType
(
TYPE_TRAP
)
and
ec
and
c
:
GetControler
()
==
ec
:
GetControler
()
end
function
c303660
.
efilter
(
e
,
re
)
return
re
:
GetHandler
()
==
e
:
GetHandler
():
GetEquipTarget
()
end
function
c303660
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c303660
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
e
:
GetHandler
():
GetFirstCardTarget
()
local
tc
=
e
:
GetHandler
():
GetFirstCardTarget
()
if
tc
and
tc
:
IsLocation
(
LOCATION_MZONE
)
then
if
tc
and
tc
:
IsLocation
(
LOCATION_MZONE
)
then
...
...
c77585513.lua
View file @
f80b5d63
--人造人間-サイコ・ショッカー
--人造人間-サイコ・ショッカー
function
c77585513
.
initial_effect
(
c
)
function
c77585513
.
initial_effect
(
c
)
--cannot trigger
--cannot trigger
, normal version
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_CANNOT_TRIGGER
)
e1
:
SetCode
(
EFFECT_CANNOT_TRIGGER
)
e1
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetTargetRange
(
LOCATION_HAND
+
LOCATION_SZONE
,
LOCATION_HAND
+
LOCATION_SZONE
)
e1
:
SetTargetRange
(
LOCATION_HAND
+
LOCATION_SZONE
,
LOCATION_HAND
+
LOCATION_SZONE
)
e1
:
SetCondition
(
c77585513
.
condition1
)
e1
:
SetTarget
(
c77585513
.
distg
)
e1
:
SetTarget
(
c77585513
.
distg
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--disable
--disable
...
@@ -15,6 +16,7 @@ function c77585513.initial_effect(c)
...
@@ -15,6 +16,7 @@ function c77585513.initial_effect(c)
e2
:
SetCode
(
EFFECT_DISABLE
)
e2
:
SetCode
(
EFFECT_DISABLE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetTargetRange
(
LOCATION_SZONE
,
LOCATION_SZONE
)
e2
:
SetTargetRange
(
LOCATION_SZONE
,
LOCATION_SZONE
)
e2
:
SetCondition
(
c77585513
.
condition1
)
e2
:
SetTarget
(
c77585513
.
distg
)
e2
:
SetTarget
(
c77585513
.
distg
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
--disable effect
--disable effect
...
@@ -22,7 +24,8 @@ function c77585513.initial_effect(c)
...
@@ -22,7 +24,8 @@ function c77585513.initial_effect(c)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e3
:
SetCode
(
EVENT_CHAIN_SOLVING
)
e3
:
SetCode
(
EVENT_CHAIN_SOLVING
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetOperation
(
c77585513
.
disop
)
e3
:
SetCondition
(
c77585513
.
discon1
)
e3
:
SetOperation
(
c77585513
.
disop1
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
--disable trap monster
--disable trap monster
local
e4
=
Effect
.
CreateEffect
(
c
)
local
e4
=
Effect
.
CreateEffect
(
c
)
...
@@ -30,15 +33,54 @@ function c77585513.initial_effect(c)
...
@@ -30,15 +33,54 @@ function c77585513.initial_effect(c)
e4
:
SetCode
(
EFFECT_DISABLE_TRAPMONSTER
)
e4
:
SetCode
(
EFFECT_DISABLE_TRAPMONSTER
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetTargetRange
(
LOCATION_MZONE
,
LOCATION_MZONE
)
e4
:
SetTargetRange
(
LOCATION_MZONE
,
LOCATION_MZONE
)
e4
:
SetCondition
(
c77585513
.
condition1
)
e4
:
SetTarget
(
c77585513
.
distg
)
e4
:
SetTarget
(
c77585513
.
distg
)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
--Amplifier version
local
e5
=
e1
:
Clone
()
e5
:
SetTargetRange
(
0
,
LOCATION_HAND
+
LOCATION_SZONE
)
e5
:
SetCondition
(
c77585513
.
condition2
)
c
:
RegisterEffect
(
e5
)
--
local
e6
=
e2
:
Clone
()
e6
:
SetTargetRange
(
0
,
LOCATION_SZONE
)
e6
:
SetCondition
(
c77585513
.
condition2
)
c
:
RegisterEffect
(
e6
)
--
local
e7
=
e3
:
Clone
()
e7
:
SetCondition
(
c77585513
.
discon2
)
e7
:
SetOperation
(
c77585513
.
disop2
)
c
:
RegisterEffect
(
e7
)
--
local
e8
=
e4
:
Clone
()
e8
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e8
:
SetCondition
(
c77585513
.
condition2
)
c
:
RegisterEffect
(
e8
)
end
function
c77585513
.
condition1
(
e
)
return
not
e
:
GetHandler
():
IsHasEffect
(
303660
)
end
end
function
c77585513
.
distg
(
e
,
c
)
function
c77585513
.
distg
(
e
,
c
)
return
c
:
IsType
(
TYPE_TRAP
)
return
c
:
IsType
(
TYPE_TRAP
)
end
end
function
c77585513
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c77585513
.
discon1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
not
e
:
GetHandler
():
IsHasEffect
(
303660
)
end
function
c77585513
.
disop1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tl
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TRIGGERING_LOCATION
)
local
tl
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TRIGGERING_LOCATION
)
if
tl
==
LOCATION_SZONE
and
re
:
IsActiveType
(
TYPE_TRAP
)
then
if
tl
==
LOCATION_SZONE
and
re
:
IsActiveType
(
TYPE_TRAP
)
then
Duel
.
NegateEffect
(
ev
)
Duel
.
NegateEffect
(
ev
)
end
end
end
end
function
c77585513
.
condition2
(
e
)
return
e
:
GetHandler
():
IsHasEffect
(
303660
)
end
function
c77585513
.
discon2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsHasEffect
(
303660
)
end
function
c77585513
.
disop2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
p
,
tl
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TRIGGERING_PLAYER
,
CHAININFO_TRIGGERING_LOCATION
)
if
p
==
1
-
e
:
GetHandlerPlayer
()
and
tl
==
LOCATION_SZONE
and
re
:
IsActiveType
(
TYPE_TRAP
)
then
Duel
.
NegateEffect
(
ev
)
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment