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
5bb5485e
Commit
5bb5485e
authored
Dec 28, 2016
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
83adfae3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
8 deletions
+20
-8
c43530283.lua
c43530283.lua
+12
-6
c6924874.lua
c6924874.lua
+8
-2
No files found.
c43530283.lua
View file @
5bb5485e
...
@@ -18,13 +18,12 @@ function c43530283.adop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -18,13 +18,12 @@ function c43530283.adop(e,tp,eg,ep,ev,re,r,rp)
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_SET_BASE_ATTACK
)
e1
:
SetCode
(
EFFECT_SET_BASE_ATTACK
)
e1
:
SetValue
(
c43530283
.
val
)
e1
:
SetValue
(
c43530283
.
atkval
)
e1
:
SetLabel
(
1100
)
e1
:
SetReset
(
RESET_EVENT
+
0x1ff0000
)
e1
:
SetReset
(
RESET_EVENT
+
0x1ff0000
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EFFECT_SET_BASE_DEFENSE
)
e2
:
SetCode
(
EFFECT_SET_BASE_DEFENSE
)
e2
:
Set
Label
(
1200
)
e2
:
Set
Value
(
c43530283
.
defval
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
if
Duel
.
GetTurnPlayer
()
==
tp
then
if
Duel
.
GetTurnPlayer
()
==
tp
then
c
:
RegisterFlagEffect
(
43530283
,
RESET_EVENT
+
0x1ff0000
+
RESET_PHASE
+
PHASE_END
+
RESET_SELF_TURN
,
0
,
2
)
c
:
RegisterFlagEffect
(
43530283
,
RESET_EVENT
+
0x1ff0000
+
RESET_PHASE
+
PHASE_END
+
RESET_SELF_TURN
,
0
,
2
)
...
@@ -33,10 +32,17 @@ function c43530283.adop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -33,10 +32,17 @@ function c43530283.adop(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
end
end
function
c43530283
.
val
(
e
,
c
)
function
c43530283
.
atk
val
(
e
,
c
)
if
c
:
GetFlagEffect
(
43530283
)
==
0
then
if
c
:
GetFlagEffect
(
43530283
)
==
0
then
return
e
:
GetLabel
()
*
2
return
c
:
GetBaseAttack
()
*
2
else
else
return
e
:
GetLabel
()
/
2
return
c
:
GetBaseAttack
()
/
2
end
end
function
c43530283
.
defval
(
e
,
c
)
if
c
:
GetFlagEffect
(
43530283
)
==
0
then
return
c
:
GetBaseDefense
()
*
2
else
return
c
:
GetBaseDefense
()
/
2
end
end
end
end
c6924874.lua
View file @
5bb5485e
...
@@ -15,11 +15,11 @@ function c6924874.initial_effect(c)
...
@@ -15,11 +15,11 @@ function c6924874.initial_effect(c)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCode
(
EFFECT_SET_BASE_ATTACK
)
e2
:
SetCode
(
EFFECT_SET_BASE_ATTACK
)
e2
:
SetCondition
(
c6924874
.
adcon
)
e2
:
SetCondition
(
c6924874
.
adcon
)
e2
:
SetValue
(
2400
)
e2
:
SetValue
(
c6924874
.
atkval
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
local
e3
=
e2
:
Clone
()
local
e3
=
e2
:
Clone
()
e3
:
SetCode
(
EFFECT_SET_BASE_DEFENSE
)
e3
:
SetCode
(
EFFECT_SET_BASE_DEFENSE
)
e3
:
SetValue
(
1200
)
e3
:
SetValue
(
c6924874
.
defval
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
--destroy
--destroy
local
e4
=
Effect
.
CreateEffect
(
c
)
local
e4
=
Effect
.
CreateEffect
(
c
)
...
@@ -43,6 +43,12 @@ end
...
@@ -43,6 +43,12 @@ end
function
c6924874
.
adcon
(
e
)
function
c6924874
.
adcon
(
e
)
return
Duel
.
IsExistingMatchingCard
(
c6924874
.
cfilter
,
e
:
GetHandlerPlayer
(),
LOCATION_MZONE
,
0
,
2
,
nil
)
return
Duel
.
IsExistingMatchingCard
(
c6924874
.
cfilter
,
e
:
GetHandlerPlayer
(),
LOCATION_MZONE
,
0
,
2
,
nil
)
end
end
function
c6924874
.
atkval
(
e
,
c
)
return
c
:
GetBaseAttack
()
*
2
end
function
c6924874
.
defval
(
e
,
c
)
return
c
:
GetBaseDefense
()
*
2
end
function
c6924874
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c6924874
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsExistingMatchingCard
(
c6924874
.
cfilter
,
e
:
GetHandlerPlayer
(),
LOCATION_MZONE
,
0
,
3
,
nil
)
return
Duel
.
IsExistingMatchingCard
(
c6924874
.
cfilter
,
e
:
GetHandlerPlayer
(),
LOCATION_MZONE
,
0
,
3
,
nil
)
end
end
...
...
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