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
a2e1b60b
Commit
a2e1b60b
authored
Sep 01, 2018
by
DailyShana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix swap atk/def by activated effect
parent
240b71a4
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
10 deletions
+10
-10
c4239451.lua
c4239451.lua
+4
-4
c71578874.lua
c71578874.lua
+2
-2
c79967395.lua
c79967395.lua
+2
-2
constant.lua
constant.lua
+2
-2
No files found.
c4239451.lua
View file @
a2e1b60b
...
@@ -42,12 +42,12 @@ function c4239451.adop1(e,tp,eg,ep,ev,re,r,rp)
...
@@ -42,12 +42,12 @@ function c4239451.adop1(e,tp,eg,ep,ev,re,r,rp)
local
def
=
tc
:
GetDefense
()
local
def
=
tc
:
GetDefense
()
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_S
WAP
_ATTACK_FINAL
)
e1
:
SetCode
(
EFFECT_S
ET
_ATTACK_FINAL
)
e1
:
SetValue
(
def
)
e1
:
SetValue
(
def
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
tc
:
RegisterEffect
(
e1
)
tc
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EFFECT_S
WAP
_DEFENSE_FINAL
)
e2
:
SetCode
(
EFFECT_S
ET
_DEFENSE_FINAL
)
e2
:
SetValue
(
atk
)
e2
:
SetValue
(
atk
)
tc
:
RegisterEffect
(
e2
)
tc
:
RegisterEffect
(
e2
)
end
end
...
@@ -69,13 +69,13 @@ function c4239451.adop2(e,tp,eg,ep,ev,re,r,rp)
...
@@ -69,13 +69,13 @@ function c4239451.adop2(e,tp,eg,ep,ev,re,r,rp)
local
def
=
tc
:
GetDefense
()
local
def
=
tc
:
GetDefense
()
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_S
WAP
_ATTACK_FINAL
)
e1
:
SetCode
(
EFFECT_S
ET
_ATTACK_FINAL
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetValue
(
def
)
e1
:
SetValue
(
def
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
tc
:
RegisterEffect
(
e1
)
tc
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EFFECT_S
WAP
_DEFENSE_FINAL
)
e2
:
SetCode
(
EFFECT_S
ET
_DEFENSE_FINAL
)
e2
:
SetValue
(
atk
)
e2
:
SetValue
(
atk
)
tc
:
RegisterEffect
(
e2
)
tc
:
RegisterEffect
(
e2
)
end
end
...
...
c71578874.lua
View file @
a2e1b60b
...
@@ -71,13 +71,13 @@ function c71578874.swop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -71,13 +71,13 @@ function c71578874.swop(e,tp,eg,ep,ev,re,r,rp)
local
def
=
tc
:
GetDefense
()
local
def
=
tc
:
GetDefense
()
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_S
WAP
_ATTACK_FINAL
)
e1
:
SetCode
(
EFFECT_S
ET
_ATTACK_FINAL
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetValue
(
def
)
e1
:
SetValue
(
def
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
tc
:
RegisterEffect
(
e1
)
tc
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EFFECT_S
WAP
_DEFENSE_FINAL
)
e2
:
SetCode
(
EFFECT_S
ET
_DEFENSE_FINAL
)
e2
:
SetValue
(
atk
)
e2
:
SetValue
(
atk
)
tc
:
RegisterEffect
(
e2
)
tc
:
RegisterEffect
(
e2
)
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
...
...
c79967395.lua
View file @
a2e1b60b
...
@@ -34,13 +34,13 @@ function c79967395.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -34,13 +34,13 @@ function c79967395.operation(e,tp,eg,ep,ev,re,r,rp)
local
def
=
tc
:
GetDefense
()
local
def
=
tc
:
GetDefense
()
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_S
WAP
_ATTACK_FINAL
)
e1
:
SetCode
(
EFFECT_S
ET
_ATTACK_FINAL
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetValue
(
def
)
e1
:
SetValue
(
def
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
tc
:
RegisterEffect
(
e1
)
tc
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EFFECT_S
WAP
_DEFENSE_FINAL
)
e2
:
SetCode
(
EFFECT_S
ET
_DEFENSE_FINAL
)
e2
:
SetValue
(
atk
)
e2
:
SetValue
(
atk
)
tc
:
RegisterEffect
(
e2
)
tc
:
RegisterEffect
(
e2
)
end
end
...
...
constant.lua
View file @
a2e1b60b
...
@@ -389,8 +389,8 @@ EFFECT_SET_BASE_DEFENSE =107 --设置原本防御力
...
@@ -389,8 +389,8 @@ EFFECT_SET_BASE_DEFENSE =107 --设置原本防御力
EFFECT_REVERSE_UPDATE
=
108
--倒置改变攻击力、防御力(天邪鬼)
EFFECT_REVERSE_UPDATE
=
108
--倒置改变攻击力、防御力(天邪鬼)
EFFECT_SWAP_AD
=
109
--交换攻防(超級漏洞人)
EFFECT_SWAP_AD
=
109
--交换攻防(超級漏洞人)
EFFECT_SWAP_BASE_AD
=
110
--交换原本攻防
EFFECT_SWAP_BASE_AD
=
110
--交换原本攻防
EFFECT_SWAP_ATTACK_FINAL
=
111
--
設定最終攻擊力(用於交換攻防)
EFFECT_SWAP_ATTACK_FINAL
=
111
--
N/A
EFFECT_SWAP_DEFENSE_FINAL
=
112
--
設定最終防禦力(用於交換攻防)
EFFECT_SWAP_DEFENSE_FINAL
=
112
--
N/A
EFFECT_ADD_CODE
=
113
--增加卡名
EFFECT_ADD_CODE
=
113
--增加卡名
EFFECT_CHANGE_CODE
=
114
--改变卡名
EFFECT_CHANGE_CODE
=
114
--改变卡名
EFFECT_ADD_TYPE
=
115
--增加卡片种类(types)
EFFECT_ADD_TYPE
=
115
--增加卡片种类(types)
...
...
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