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
e93e9187
Commit
e93e9187
authored
Jun 10, 2016
by
salix5
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
EFFECT_SWAP_ATTACK_FINAL
parent
0d39c19f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
37 additions
and
5 deletions
+37
-5
c4239451.lua
c4239451.lua
+17
-2
c71578874.lua
c71578874.lua
+8
-1
c79967395.lua
c79967395.lua
+9
-1
constant.lua
constant.lua
+3
-1
No files found.
c4239451.lua
View file @
e93e9187
...
...
@@ -38,11 +38,18 @@ function c4239451.adop1(e,tp,eg,ep,ev,re,r,rp)
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
then
local
atk
=
tc
:
GetAttack
()
local
def
=
tc
:
GetDefense
()
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_SWAP_AD
)
e1
:
SetCode
(
EFFECT_SWAP_ATTACK_FINAL
))
e1
:
SetValue
(
def
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
)
tc
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EFFECT_SWAP_DEFENSE_FINAL
)
e2
:
SetValue
(
atk
)
tc
:
RegisterEffect
(
e2
)
end
end
function
c4239451
.
adcon2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
@@ -58,10 +65,18 @@ function c4239451.adop2(e,tp,eg,ep,ev,re,r,rp)
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
Duel
.
ChangePosition
(
tc
,
POS_FACEUP_DEFENSE
,
POS_FACEUP_ATTACK
,
POS_FACEUP_ATTACK
,
POS_FACEUP_ATTACK
)
~=
0
then
local
atk
=
tc
:
GetAttack
()
local
def
=
tc
:
GetDefense
()
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_SWAP_AD
)
e1
:
SetCode
(
EFFECT_SWAP_ATTACK_FINAL
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetValue
(
def
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
)
tc
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EFFECT_SWAP_DEFENSE_FINAL
)
e2
:
SetValue
(
atk
)
tc
:
RegisterEffect
(
e2
)
end
end
c71578874.lua
View file @
e93e9187
...
...
@@ -64,12 +64,19 @@ end
function
c71578874
.
swop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
then
local
atk
=
tc
:
GetAttack
()
local
def
=
tc
:
GetDefense
()
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_SWAP_A
D
)
e1
:
SetCode
(
EFFECT_SWAP_A
TTACK_FINAL
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetValue
(
def
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
)
tc
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EFFECT_SWAP_DEFENSE_FINAL
)
e2
:
SetValue
(
atk
)
tc
:
RegisterEffect
(
e2
)
Duel
.
BreakEffect
()
Duel
.
Damage
(
tp
,
500
,
REASON_EFFECT
)
end
...
...
c79967395.lua
View file @
e93e9187
...
...
@@ -30,10 +30,18 @@ end
function
c79967395
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
then
local
atk
=
tc
:
GetAttack
()
local
def
=
tc
:
GetDefense
()
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_SWAP_AD
)
e1
:
SetCode
(
EFFECT_SWAP_ATTACK_FINAL
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetValue
(
def
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
)
tc
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EFFECT_SWAP_DEFENSE_FINAL
)
e2
:
SetValue
(
atk
)
tc
:
RegisterEffect
(
e2
)
end
end
constant.lua
View file @
e93e9187
...
...
@@ -366,8 +366,10 @@ EFFECT_SET_DEFENSE =105 --设置防御力
EFFECT_SET_DEFENSE_FINAL
=
106
--设置最终防御力
EFFECT_SET_BASE_DEFENSE
=
107
--设置原本防御力
EFFECT_REVERSE_UPDATE
=
108
--倒置改变攻击力、防御力(天邪鬼)
EFFECT_SWAP_AD
=
109
--交换攻防
EFFECT_SWAP_AD
=
109
--交换攻防
(超級漏洞人)
EFFECT_SWAP_BASE_AD
=
110
--交换原本攻防
EFFECT_SWAP_ATTACK_FINAL
=
111
--設定最終攻擊力(用於交換攻防)
EFFECT_SWAP_DEFENSE_FINAL
=
112
--設定最終防禦力(用於交換攻防)
EFFECT_ADD_CODE
=
113
--增加卡名
EFFECT_CHANGE_CODE
=
114
--改变卡名
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