Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-scripts
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
Reinen
ygopro-scripts
Commits
4ed76387
Commit
4ed76387
authored
Feb 20, 2020
by
mallu11
Committed by
GitHub
Feb 20, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix effects about Continuous Trap for trapmonster (#1340)
* fix 邪気退散 * fix 結界術師 メイコウ * fix 金属探知器
parent
245c0f05
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
3 deletions
+10
-3
c13626450.lua
c13626450.lua
+1
-1
c47731128.lua
c47731128.lua
+1
-1
c75646520.lua
c75646520.lua
+8
-1
No files found.
c13626450.lua
View file @
4ed76387
...
...
@@ -15,7 +15,7 @@ function c13626450.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
DiscardHand
(
tp
,
Card
.
IsDiscardable
,
1
,
1
,
REASON_COST
+
REASON_DISCARD
)
end
function
c13626450
.
filter
(
c
)
return
c
:
IsFaceup
()
and
c
:
GetType
()
==
TYPE_TRAP
+
TYPE_CONTINUOUS
return
c
:
IsFaceup
()
and
bit
.
band
(
c
:
GetType
(),
0x20004
)
==
0x20004
end
function
c13626450
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c13626450
.
filter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
nil
)
end
...
...
c47731128.lua
View file @
4ed76387
...
...
@@ -18,7 +18,7 @@ function c47731128.cost(e,tp,eg,ep,ev,re,r,rp,chk)
end
function
c47731128
.
filter
(
c
)
local
tpe
=
c
:
GetType
()
return
c
:
IsFaceup
()
and
(
tpe
==
0x20002
or
tpe
==
0x20004
)
return
c
:
IsFaceup
()
and
(
tpe
==
0x20002
or
bit
.
band
(
tpe
,
0x20004
)
==
0x20004
)
end
function
c47731128
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsOnField
()
and
c47731128
.
filter
(
chkc
)
end
...
...
c75646520.lua
View file @
4ed76387
...
...
@@ -21,7 +21,14 @@ function c75646520.activate(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetTarget
(
c75646520
.
distarget
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e1
,
tp
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
EFFECT_DISABLE_TRAPMONSTER
)
e2
:
SetTargetRange
(
LOCATION_MZONE
,
LOCATION_MZONE
)
e2
:
SetTarget
(
c75646520
.
distarget
)
e2
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e2
,
tp
)
end
function
c75646520
.
distarget
(
e
,
c
)
return
c
:
GetType
()
==
TYPE_CONTINUOUS
+
TYPE_TRAP
return
bit
.
band
(
c
:
GetType
(),
0x20004
)
==
0x20004
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