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
八宫一月
ygopro-scripts
Commits
5b9ab87d
Commit
5b9ab87d
authored
Oct 21, 2015
by
salix5
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
0b68dc20
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
11 deletions
+13
-11
c94585852.lua
c94585852.lua
+11
-9
constant.lua
constant.lua
+2
-2
No files found.
c94585852.lua
View file @
5b9ab87d
...
@@ -7,17 +7,17 @@ function c94585852.initial_effect(c)
...
@@ -7,17 +7,17 @@ function c94585852.initial_effect(c)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--cost change
--cost change
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
EFFECT_LPCOST_
REPLAC
E
)
e2
:
SetCode
(
EFFECT_LPCOST_
CHANG
E
)
e2
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e2
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e2
:
SetRange
(
LOCATION_
S
ZONE
)
e2
:
SetRange
(
LOCATION_
F
ZONE
)
e2
:
SetTargetRange
(
1
,
1
)
e2
:
SetTargetRange
(
1
,
1
)
e2
:
SetCondition
(
c94585852
.
repcon
)
e2
:
SetCondition
(
c94585852
.
costchange
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
--search
--search
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e3
:
SetRange
(
LOCATION_
S
ZONE
)
e3
:
SetRange
(
LOCATION_
F
ZONE
)
e3
:
SetCode
(
EVENT_TO_GRAVE
)
e3
:
SetCode
(
EVENT_TO_GRAVE
)
e3
:
SetOperation
(
c94585852
.
regop
)
e3
:
SetOperation
(
c94585852
.
regop
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
...
@@ -31,10 +31,12 @@ function c94585852.initial_effect(c)
...
@@ -31,10 +31,12 @@ function c94585852.initial_effect(c)
e4
:
SetOperation
(
c94585852
.
operation
)
e4
:
SetOperation
(
c94585852
.
operation
)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
end
end
function
c94585852
.
repcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c94585852
.
costchange
(
e
,
re
,
rp
,
val
)
if
not
re
then
return
false
end
if
Duel
.
GetCurrentPhase
()
==
PHASE_STANDBY
and
re
and
re
:
GetHandler
():
IsSetCard
(
0x45
)
and
re
:
GetHandler
():
IsType
(
TYPE_MONSTER
)
then
local
rc
=
re
:
GetHandler
()
return
0
return
Duel
.
GetCurrentPhase
()
==
PHASE_STANDBY
and
rc
:
IsSetCard
(
0x45
)
and
rc
:
IsType
(
TYPE_MONSTER
)
else
return
val
end
end
end
function
c94585852
.
regop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c94585852
.
regop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
lv1
=
0
local
lv1
=
0
...
...
constant.lua
View file @
5b9ab87d
...
@@ -403,8 +403,8 @@ EFFECT_PUBLIC =160 --公开手牌
...
@@ -403,8 +403,8 @@ EFFECT_PUBLIC =160 --公开手牌
EFFECT_COUNTER_PERMIT
=
0x10000
--允许放置指示物类型
EFFECT_COUNTER_PERMIT
=
0x10000
--允许放置指示物类型
EFFECT_COUNTER_LIMIT
=
0x20000
--允许放置指示物数量
EFFECT_COUNTER_LIMIT
=
0x20000
--允许放置指示物数量
EFFECT_RCOUNTER_REPLACE
=
0x30000
--代替取除指示物
EFFECT_RCOUNTER_REPLACE
=
0x30000
--代替取除指示物
EFFECT_LPCOST_CHANGE
=
170
--改变生命值代价
EFFECT_LPCOST_CHANGE
=
170
--改变生命值代价
數值
EFFECT_LPCOST_REPLACE
=
171
--代替生命值代价
EFFECT_LPCOST_REPLACE
=
171
--
以其他動作
代替生命值代价
EFFECT_SKIP_DP
=
180
--跳过抽卡阶段
EFFECT_SKIP_DP
=
180
--跳过抽卡阶段
EFFECT_SKIP_SP
=
181
--跳过准备阶段
EFFECT_SKIP_SP
=
181
--跳过准备阶段
EFFECT_SKIP_M1
=
182
--跳过主要阶段1
EFFECT_SKIP_M1
=
182
--跳过主要阶段1
...
...
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