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
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
MyCard
ygopro-scripts
Commits
fe7e9928
Commit
fe7e9928
authored
May 07, 2019
by
nekrozar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
https://github.com/Fluorohydride/ygopro-core/commit/93bb39b4497fd5db3e432745f88b6388b074f9ac
parent
c74c5d59
Changes
14
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
15 additions
and
39 deletions
+15
-39
c1475311.lua
c1475311.lua
+1
-1
c15693423.lua
c15693423.lua
+2
-2
c26557451.lua
c26557451.lua
+1
-1
c30459350.lua
c30459350.lua
+0
-8
c34267821.lua
c34267821.lua
+0
-8
c40465719.lua
c40465719.lua
+1
-1
c51858306.lua
c51858306.lua
+1
-1
c58820923.lua
c58820923.lua
+2
-2
c62015408.lua
c62015408.lua
+1
-1
c66171432.lua
c66171432.lua
+2
-2
c90506641.lua
c90506641.lua
+2
-2
c97940434.lua
c97940434.lua
+0
-8
constant.lua
constant.lua
+1
-1
utility.lua
utility.lua
+1
-1
No files found.
c1475311.lua
View file @
fe7e9928
...
...
@@ -11,7 +11,7 @@ function c1475311.initial_effect(c)
c
:
RegisterEffect
(
e1
)
end
function
c1475311
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
not
Duel
.
IsPlayer
AffectedByEffect
(
tp
,
EFFECT_IRON_WALL
)
and
Duel
.
IsPlayerCanDraw
(
tp
,
2
)
end
if
chk
==
0
then
return
not
Duel
.
IsPlayer
CanRemove
(
tp
)
and
Duel
.
IsPlayerCanDraw
(
tp
,
2
)
end
Duel
.
SetTargetPlayer
(
tp
)
Duel
.
SetTargetParam
(
2
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
tp
,
2
)
...
...
c15693423.lua
View file @
fe7e9928
...
...
@@ -27,12 +27,12 @@ function c15693423.target(e,tp,eg,ep,ev,re,r,rp,chk)
local
g
=
Duel
.
GetFieldGroup
(
tp
,
0
,
LOCATION_ONFIELD
)
local
ct
=
g
:
GetCount
()
-
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_ONFIELD
,
0
)
if
e
:
GetHandler
():
IsLocation
(
LOCATION_HAND
)
then
ct
=
ct
-
1
end
if
chk
==
0
then
return
not
Duel
.
IsPlayer
AffectedByEffect
(
1
-
tp
,
EFFECT_IRON_WALL
)
if
chk
==
0
then
return
not
Duel
.
IsPlayer
CanRemove
(
1
-
tp
)
and
ct
>
0
and
g
:
IsExists
(
c15693423
.
rmfilter
,
1
,
nil
,
1
-
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
g
,
ct
,
0
,
0
)
end
function
c15693423
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
IsPlayer
AffectedByEffect
(
1
-
tp
,
EFFECT_IRON_WALL
)
then
return
end
if
Duel
.
IsPlayer
CanRemove
(
1
-
tp
)
then
return
end
local
g
=
Duel
.
GetFieldGroup
(
tp
,
0
,
LOCATION_ONFIELD
)
local
ct
=
g
:
GetCount
()
-
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_ONFIELD
,
0
)
if
ct
>
0
then
...
...
c26557451.lua
View file @
fe7e9928
...
...
@@ -15,7 +15,7 @@ function c26557451.condition(e,tp,eg,ep,ev,re,r,rp)
return
ep
==
1
-
tp
and
r
&
REASON_EFFECT
~=
0
and
rp
==
1
-
tp
end
function
c26557451
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
not
Duel
.
IsPlayer
AffectedByEffect
(
tp
,
EFFECT_IRON_WALL
)
end
if
chk
==
0
then
return
not
Duel
.
IsPlayer
CanRemove
(
tp
)
end
local
g
=
eg
:
Filter
(
Card
.
IsControler
,
nil
,
1
-
tp
)
Duel
.
SetTargetCard
(
g
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
nil
,
0
,
1
-
tp
,
LOCATION_HAND
)
...
...
c30459350.lua
View file @
fe7e9928
...
...
@@ -14,12 +14,4 @@ function c30459350.initial_effect(c)
e2
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e2
:
SetTargetRange
(
1
,
1
)
c
:
RegisterEffect
(
e2
)
--30459350 chk
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetCode
(
EFFECT_IRON_WALL
)
e3
:
SetRange
(
LOCATION_SZONE
)
e3
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e3
:
SetTargetRange
(
1
,
1
)
c
:
RegisterEffect
(
e3
)
end
c34267821.lua
View file @
fe7e9928
...
...
@@ -57,12 +57,4 @@ function c34267821.rmop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetValue
(
1
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e1
,
tp
)
--30459350 chk
local
e2
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
EFFECT_IRON_WALL
)
e2
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e2
:
SetTargetRange
(
1
,
1
)
e2
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e2
,
tp
)
end
c40465719.lua
View file @
fe7e9928
...
...
@@ -11,7 +11,7 @@ function c40465719.initial_effect(c)
c
:
RegisterEffect
(
e1
)
end
function
c40465719
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
not
Duel
.
IsPlayer
AffectedByEffect
(
tp
,
EFFECT_IRON_WALL
)
and
Duel
.
IsPlayerCanDraw
(
tp
,
2
)
end
if
chk
==
0
then
return
not
Duel
.
IsPlayer
CanRemove
(
tp
)
and
Duel
.
IsPlayerCanDraw
(
tp
,
2
)
end
Duel
.
SetTargetPlayer
(
tp
)
Duel
.
SetTargetParam
(
2
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
tp
,
2
)
...
...
c51858306.lua
View file @
fe7e9928
...
...
@@ -31,7 +31,7 @@ function c51858306.filter(c)
and
c
:
IsAbleToRemove
()
end
function
c51858306
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
IsPlayer
AffectedByEffect
(
tp
,
EFFECT_IRON_WALL
)
then
return
end
if
Duel
.
IsPlayer
CanRemove
(
tp
)
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c51858306
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
local
tc
=
g
:
GetFirst
()
...
...
c58820923.lua
View file @
fe7e9928
...
...
@@ -53,13 +53,13 @@ function c58820923.rmcost(e,tp,eg,ep,ev,re,r,rp,chk)
end
function
c58820923
.
rmtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_DECK
)
>
2
and
not
Duel
.
IsPlayer
AffectedByEffect
(
1
-
tp
,
EFFECT_IRON_WALL
)
end
and
not
Duel
.
IsPlayer
CanRemove
(
1
-
tp
)
end
end
function
c58820923
.
rmfilter
(
c
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToRemove
()
end
function
c58820923
.
rmop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
IsPlayer
AffectedByEffect
(
1
-
tp
,
EFFECT_IRON_WALL
)
then
return
end
if
Duel
.
IsPlayer
CanRemove
(
1
-
tp
)
then
return
end
local
g
=
Duel
.
GetMatchingGroup
(
c58820923
.
rmfilter
,
1
-
tp
,
LOCATION_DECK
,
0
,
nil
)
if
g
:
GetCount
()
>
2
then
Duel
.
Hint
(
HINT_SELECTMSG
,
1
-
tp
,
HINTMSG_REMOVE
)
...
...
c62015408.lua
View file @
fe7e9928
...
...
@@ -23,7 +23,7 @@ function c62015408.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_COST
+
REASON_DISCARD
)
end
function
c62015408
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
not
Duel
.
IsPlayer
AffectedByEffect
(
tp
,
EFFECT_IRON_WALL
)
if
chk
==
0
then
return
not
Duel
.
IsPlayer
CanRemove
(
tp
)
and
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_EXTRA
,
0
)
>
0
and
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_EXTRA
)
>
0
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
nil
,
1
,
1
-
tp
,
LOCATION_EXTRA
)
...
...
c66171432.lua
View file @
fe7e9928
...
...
@@ -25,14 +25,14 @@ function c66171432.filter(c,e,tp)
return
c
:
IsSetCard
(
0xe6
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
true
,
false
)
end
function
c66171432
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
not
Duel
.
IsPlayer
AffectedByEffect
(
tp
,
EFFECT_IRON_WALL
)
if
chk
==
0
then
return
not
Duel
.
IsPlayer
CanRemove
(
tp
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c66171432
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
0
,
tp
,
LOCATION_DECK
)
end
function
c66171432
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
Duel
.
IsPlayer
AffectedByEffect
(
tp
,
EFFECT_IRON_WALL
)
then
return
end
if
Duel
.
IsPlayer
CanRemove
(
tp
)
then
return
end
Duel
.
ConfirmDecktop
(
tp
,
3
)
local
g
=
Duel
.
GetDecktopGroup
(
tp
,
3
)
local
sg
=
g
:
Filter
(
c66171432
.
filter
,
nil
,
e
,
tp
)
...
...
c90506641.lua
View file @
fe7e9928
...
...
@@ -21,12 +21,12 @@ function c90506641.filter(c)
return
c
:
IsType
(
TYPE_NORMAL
)
and
c
:
IsAbleToHand
()
end
function
c90506641
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
not
Duel
.
IsPlayer
AffectedByEffect
(
tp
,
EFFECT_IRON_WALL
)
if
chk
==
0
then
return
not
Duel
.
IsPlayer
CanRemove
(
tp
)
and
Duel
.
IsExistingMatchingCard
(
c90506641
.
filter
,
tp
,
LOCATION_DECK
,
0
,
5
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
function
c90506641
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
IsPlayer
AffectedByEffect
(
tp
,
EFFECT_IRON_WALL
)
then
return
end
if
Duel
.
IsPlayer
CanRemove
(
tp
)
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
90506641
,
0
))
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c90506641
.
filter
,
tp
,
LOCATION_DECK
,
0
,
5
,
5
,
nil
)
if
g
:
GetCount
()
<
5
then
return
end
...
...
c97940434.lua
View file @
fe7e9928
...
...
@@ -20,14 +20,6 @@ function c97940434.initial_effect(c)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetTargetRange
(
0
,
1
)
c
:
RegisterEffect
(
e2
)
--30459350 chk
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetCode
(
EFFECT_IRON_WALL
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e3
:
SetTargetRange
(
0
,
1
)
c
:
RegisterEffect
(
e3
)
end
function
c97940434
.
spfilter
(
c
,
sp
)
return
c
:
GetSummonPlayer
()
==
sp
...
...
constant.lua
View file @
fe7e9928
...
...
@@ -542,7 +542,7 @@ EFFECT_ADD_LINK_RACE =357 --用作连接素材时的种族
EFFECT_EXTRA_LINK_MATERIAL
=
358
--手卡的连接素材
EFFECT_QP_ACT_IN_SET_TURN
=
359
--速攻魔法可以在盖放的回合发动
EFFECT_EXTRA_PENDULUM_SUMMON
=
360
--extra pendulum summon
EFFECT_IRON_WALL
=
361
--
玩家已受到"不能除外"的效果影響
EFFECT_IRON_WALL
=
361
--
N/A
--下面是诱发效果的诱发事件、时点 (如果是TYPE_SINGLE则自己发生以下事件后触发,如果TYPE_FIELD则场上任何卡发生以下事件都触发)
EVENT_STARTUP
=
1000
--N/A
...
...
utility.lua
View file @
fe7e9928
...
...
@@ -2193,6 +2193,6 @@ end
--condition of "negate activation and banish"
function
Auxiliary
.
nbcon
(
tp
,
re
)
local
rc
=
re
:
GetHandler
()
return
not
Duel
.
IsPlayer
AffectedByEffect
(
tp
,
EFFECT_IRON_WALL
)
return
not
Duel
.
IsPlayer
CanRemove
(
tp
)
and
(
not
rc
:
IsRelateToEffect
(
re
)
or
rc
:
IsAbleToRemove
())
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