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
dabe4493
Commit
dabe4493
authored
Mar 27, 2016
by
salix5
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
c0d5188e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
c19254117.lua
c19254117.lua
+5
-4
constant.lua
constant.lua
+2
-2
No files found.
c19254117.lua
View file @
dabe4493
...
...
@@ -43,20 +43,20 @@ function c19254117.activate(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_SET_DEFENCE_FINAL
)
e1
:
SetValue
(
tc
:
GetDefence
()
*
2
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_
END
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_
DRAW
)
tc
:
RegisterEffect
(
e1
)
--def to 0
tc
:
RegisterFlagEffect
(
19254117
,
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_
END
,
0
,
1
)
tc
:
RegisterFlagEffect
(
19254117
,
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_
DRAW
,
0
,
1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
19254117
,
2
))
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetCode
(
EVENT_
PHASE
+
PHASE
_END
)
e2
:
SetCode
(
EVENT_
TURN
_END
)
e2
:
SetCountLimit
(
1
)
e2
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e2
:
SetLabelObject
(
tc
)
e2
:
SetCondition
(
c19254117
.
ddcon
)
e2
:
SetOperation
(
c19254117
.
ddop
)
e2
:
SetReset
(
RESET_PHASE
+
PHASE_
END
)
e2
:
SetReset
(
RESET_PHASE
+
PHASE_
DRAW
)
Duel
.
RegisterEffect
(
e2
,
tp
)
end
end
...
...
@@ -72,6 +72,7 @@ function c19254117.ddop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetValue
(
0
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
tc
:
RegisterEffect
(
e1
)
tc
:
ResetFlagEffect
(
19254117
)
end
function
c19254117
.
tgcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetTurnPlayer
()
~=
tp
...
...
constant.lua
View file @
dabe4493
...
...
@@ -200,8 +200,8 @@ CHAININFO_CHAIN_ID =0x800 --连锁ID
CHAININFO_TYPE
=
0x1000
--连锁类型
CHAININFO_EXTTYPE
=
0x2000
--连锁额外类型
--========== Reset ========== --重置条件(注意:重置条件可以多个相加)
RESET_SELF_TURN
=
0x10000000
--自己回合
结束
重置
RESET_OPPO_TURN
=
0x20000000
--对方回合
结束
重置
RESET_SELF_TURN
=
0x10000000
--自己回合
的階段
重置
RESET_OPPO_TURN
=
0x20000000
--对方回合
的階段
重置
RESET_PHASE
=
0x40000000
--阶段结束重置(一般和上面那些阶段配合使用)
RESET_CHAIN
=
0x80000000
--连锁结束重置
RESET_EVENT
=
0x1000
--指定的條件下重置(一般和下面这些事件配合使用)
...
...
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