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
3
Merge Requests
3
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
MyCard
ygopro-scripts-888
Commits
e6da49ec
Commit
e6da49ec
authored
Mar 11, 2022
by
Chrono-Genex
Committed by
GitHub
Mar 11, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add EFFECT_LIMIT_SPECIAL_SUMMON_POSITION (#1829)
parent
7ab29686
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
30 additions
and
22 deletions
+30
-22
c11366199.lua
c11366199.lua
+1
-1
c17663375.lua
c17663375.lua
+1
-1
c22211622.lua
c22211622.lua
+1
-1
c3900605.lua
c3900605.lua
+1
-1
c43577607.lua
c43577607.lua
+24
-17
c5941982.lua
c5941982.lua
+1
-1
constant.lua
constant.lua
+1
-0
No files found.
c11366199.lua
View file @
e6da49ec
...
...
@@ -34,7 +34,7 @@ function c11366199.initial_effect(c)
e6
:
SetCode
(
EFFECT_CANNOT_TURN_SET
)
c
:
RegisterEffect
(
e6
)
local
e7
=
e4
:
Clone
()
e7
:
SetCode
(
EFFECT_
CANNOT_SPECIAL_SUMM
ON
)
e7
:
SetCode
(
EFFECT_
LIMIT_SPECIAL_SUMMON_POSITI
ON
)
e7
:
SetTarget
(
c11366199
.
sumlimit
)
c
:
RegisterEffect
(
e7
)
end
...
...
c17663375.lua
View file @
e6da49ec
...
...
@@ -54,7 +54,7 @@ function c17663375.thop(e,tp,eg,ep,ev,re,r,rp)
e3
:
SetCode
(
EFFECT_CANNOT_TURN_SET
)
Duel
.
RegisterEffect
(
e3
,
tp
)
local
e4
=
e1
:
Clone
()
e4
:
SetCode
(
EFFECT_
CANNOT_SPECIAL_SUMM
ON
)
e4
:
SetCode
(
EFFECT_
LIMIT_SPECIAL_SUMMON_POSITI
ON
)
e4
:
SetTarget
(
c17663375
.
sumlimit
)
Duel
.
RegisterEffect
(
e4
,
tp
)
end
...
...
c22211622.lua
View file @
e6da49ec
...
...
@@ -46,7 +46,7 @@ function c22211622.initial_effect(c)
c
:
RegisterEffect
(
e4
)
end
function
c22211622
.
splimcon
(
e
)
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsStatus
,
e
:
GetHandlerPlayer
(),
LOCATION_MZONE
,
0
,
1
,
nil
,
STATUS_EFFECT_ENABLED
)
return
Duel
.
GetFieldGroupCount
(
e
:
GetHandlerPlayer
(),
LOCATION_MZONE
,
0
)
>
0
end
function
c22211622
.
splimit
(
e
,
c
,
sump
,
sumtype
,
sumpos
,
targetp
)
return
bit
.
band
(
sumtype
,
SUMMON_TYPE_PENDULUM
)
==
SUMMON_TYPE_PENDULUM
...
...
c3900605.lua
View file @
e6da49ec
...
...
@@ -41,7 +41,7 @@ function c3900605.operation(e,tp,eg,ep,ev,re,r,rp)
e3
:
SetCode
(
EFFECT_CANNOT_TURN_SET
)
Duel
.
RegisterEffect
(
e3
,
tp
)
local
e4
=
e1
:
Clone
()
e4
:
SetCode
(
EFFECT_
CANNOT_SPECIAL_SUMM
ON
)
e4
:
SetCode
(
EFFECT_
LIMIT_SPECIAL_SUMMON_POSITI
ON
)
e4
:
SetTarget
(
c3900605
.
sumlimit
)
Duel
.
RegisterEffect
(
e4
,
tp
)
end
...
...
c43577607.lua
View file @
e6da49ec
...
...
@@ -38,28 +38,32 @@ function c43577607.initial_effect(c)
e4
:
SetCondition
(
c43577607
.
effcon
)
e4
:
SetLabel
(
4
)
c
:
RegisterEffect
(
e4
)
--poschange
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetType
(
EFFECT_TYPE_FIELD
)
e5
:
SetCode
(
EFFECT_SET_POSITION
)
e5
:
SetRange
(
LOCATION_SZONE
)
e5
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e5
:
SetValue
(
POS_FACEUP_ATTACK
)
e5
:
SetCondition
(
c43577607
.
effcon
)
e5
:
SetLabel
(
4
)
local
e5
=
e4
:
Clone
()
e5
:
SetCode
(
EFFECT_LIMIT_SPECIAL_SUMMON_POSITION
)
e5
:
SetTarget
(
c43577607
.
sumlimit
)
c
:
RegisterEffect
(
e5
)
--
destroy
--
poschange
local
e6
=
Effect
.
CreateEffect
(
c
)
e6
:
SetDescription
(
aux
.
Stringid
(
43577607
,
0
))
e6
:
SetCategory
(
CATEGORY_DESTROY
)
e6
:
SetType
(
EFFECT_TYPE_IGNITION
)
e6
:
SetType
(
EFFECT_TYPE_FIELD
)
e6
:
SetCode
(
EFFECT_SET_POSITION
)
e6
:
SetRange
(
LOCATION_SZONE
)
e6
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e6
:
SetValue
(
POS_FACEUP_ATTACK
)
e6
:
SetCondition
(
c43577607
.
effcon
)
e6
:
SetCost
(
c43577607
.
descost
)
e6
:
SetTarget
(
c43577607
.
destg
)
e6
:
SetOperation
(
c43577607
.
desop
)
e6
:
SetLabel
(
5
)
e6
:
SetLabel
(
4
)
c
:
RegisterEffect
(
e6
)
--destroy
local
e7
=
Effect
.
CreateEffect
(
c
)
e7
:
SetDescription
(
aux
.
Stringid
(
43577607
,
0
))
e7
:
SetCategory
(
CATEGORY_DESTROY
)
e7
:
SetType
(
EFFECT_TYPE_IGNITION
)
e7
:
SetRange
(
LOCATION_SZONE
)
e7
:
SetCondition
(
c43577607
.
effcon
)
e7
:
SetCost
(
c43577607
.
descost
)
e7
:
SetTarget
(
c43577607
.
destg
)
e7
:
SetOperation
(
c43577607
.
desop
)
e7
:
SetLabel
(
5
)
c
:
RegisterEffect
(
e7
)
end
function
c43577607
.
confilter
(
c
)
return
c
:
IsSetCard
(
0x9e
)
and
c
:
IsType
(
TYPE_MONSTER
)
...
...
@@ -86,6 +90,9 @@ end
function
c43577607
.
repop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_EFFECT
)
end
function
c43577607
.
sumlimit
(
e
,
c
,
sump
,
sumtype
,
sumpos
,
targetp
)
return
(
sumpos
&
POS_FACEDOWN
)
>
0
end
function
c43577607
.
descost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToGraveAsCost
()
end
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_COST
)
...
...
c5941982.lua
View file @
e6da49ec
...
...
@@ -37,7 +37,7 @@ end
function
s
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_
CANNOT_SPECIAL_SUMM
ON
)
e1
:
SetCode
(
EFFECT_
LIMIT_SPECIAL_SUMMON_POSITI
ON
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetTargetRange
(
0
,
1
)
e1
:
SetTarget
(
s
.
splimit
)
...
...
constant.lua
View file @
e6da49ec
...
...
@@ -576,6 +576,7 @@ EFFECT_SET_BATTLE_DEFENSE =363 --战斗的伤害计算用设置的守备力
EFFECT_OVERLAY_RITUAL_MATERIAL
=
364
--此卡的超量素材也能用于仪式召唤
EFFECT_CHANGE_GRAVE_ATTRIBUTE
=
365
--墓地的卡将会改变属性(升级转变)
EFFECT_CHANGE_GRAVE_RACE
=
366
--墓地的卡将会改变种族(升级转变)
EFFECT_LIMIT_SPECIAL_SUMMON_POSITION
=
368
--不能以特定表示形式特殊召唤
--下面是诱发效果的诱发事件、时点 (如果是TYPE_SINGLE则自己发生以下事件后触发,如果TYPE_FIELD则场上任何卡发生以下事件都触发)
EVENT_STARTUP
=
1000
--N/A
...
...
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