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
7cfab277
Commit
7cfab277
authored
Mar 03, 2016
by
DailyShana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
2074e09d
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
68 additions
and
79 deletions
+68
-79
c11102908.lua
c11102908.lua
+11
-12
c36100154.lua
c36100154.lua
+11
-12
c52869807.lua
c52869807.lua
+14
-12
c53527835.lua
c53527835.lua
+11
-12
c63035430.lua
c63035430.lua
+11
-12
c84171830.lua
c84171830.lua
+10
-19
No files found.
c11102908.lua
View file @
7cfab277
...
...
@@ -7,20 +7,19 @@ function c11102908.initial_effect(c)
c
:
RegisterEffect
(
e1
)
--atk down
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetCode
(
E
VENT_DAMAGE_CALCULATING
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
E
FFECT_UPDATE_ATTACK
)
e2
:
SetRange
(
LOCATION_FZONE
)
e2
:
SetOperation
(
c11102908
.
atkup
)
e2
:
SetTargetRange
(
LOCATION_MZONE
,
LOCATION_MZONE
)
e2
:
SetCondition
(
c11102908
.
atkcon
)
e2
:
SetTarget
(
c11102908
.
atktg
)
e2
:
SetValue
(
-
500
)
c
:
RegisterEffect
(
e2
)
end
function
c11102908
.
atkup
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
a
=
Duel
.
GetAttacker
()
function
c11102908
.
atkcon
(
e
)
local
d
=
Duel
.
GetAttackTarget
()
if
not
d
or
not
d
:
IsSetCard
(
0x3d
)
then
return
end
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_DAMAGE_CAL
)
e1
:
SetValue
(
-
500
)
a
:
RegisterEffect
(
e1
)
return
Duel
.
GetCurrentPhase
()
==
PHASE_DAMAGE_CAL
and
d
and
d
:
IsSetCard
(
0x3d
)
end
function
c11102908
.
atktg
(
e
,
c
)
return
c
==
Duel
.
GetAttacker
()
end
c36100154.lua
View file @
7cfab277
...
...
@@ -7,20 +7,19 @@ function c36100154.initial_effect(c)
c
:
RegisterEffect
(
e1
)
--atk up
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetCode
(
E
VENT_DAMAGE_CALCULATING
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
E
FFECT_UPDATE_ATTACK
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetOperation
(
c36100154
.
atkup
)
e2
:
SetTargetRange
(
LOCATION_MZONE
,
LOCATION_MZONE
)
e2
:
SetCondition
(
c36100154
.
atkcon
)
e2
:
SetTarget
(
c36100154
.
atktg
)
e2
:
SetValue
(
1000
)
c
:
RegisterEffect
(
e2
)
end
function
c36100154
.
atkup
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
a
=
Duel
.
GetAttacker
()
function
c36100154
.
atkcon
(
e
)
return
Duel
.
GetCurrentPhase
()
==
PHASE_DAMAGE_CAL
and
Duel
.
GetAttackTarget
()
end
function
c36100154
.
atktg
(
e
,
c
)
local
d
=
Duel
.
GetAttackTarget
()
if
not
a
:
IsSetCard
(
0x4
)
or
not
d
or
a
:
GetAttack
()
>=
d
:
GetAttack
()
then
return
end
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_DAMAGE_CAL
)
e1
:
SetValue
(
1000
)
a
:
RegisterEffect
(
e1
)
return
c
==
Duel
.
GetAttacker
()
and
c
:
IsSetCard
(
0x4
)
and
c
:
GetAttack
()
<
d
:
GetAttack
()
end
c52869807.lua
View file @
7cfab277
...
...
@@ -10,10 +10,13 @@ function c52869807.initial_effect(c)
c
:
RegisterEffect
(
e1
)
--atk down
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetCode
(
E
VENT_DAMAGE_CALCULATING
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
E
FFECT_UPDATE_ATTACK
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetOperation
(
c52869807
.
atkup
)
e2
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e2
:
SetCondition
(
c52869807
.
atkcon
)
e2
:
SetTarget
(
c52869807
.
atktg
)
e2
:
SetValue
(
-
300
)
c
:
RegisterEffect
(
e2
)
end
function
c52869807
.
spcon
(
e
,
c
)
...
...
@@ -21,14 +24,13 @@ function c52869807.spcon(e,c)
return
Duel
.
GetLocationCount
(
c
:
GetControler
(),
LOCATION_MZONE
)
>
0
and
Duel
.
GetFieldGroupCount
(
c
:
GetControler
(),
LOCATION_ONFIELD
,
0
)
==
0
end
function
c52869807
.
atk
up
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
a
=
Duel
.
GetAttacker
()
function
c52869807
.
atk
con
(
e
)
local
ph
=
Duel
.
GetCurrentPhase
()
local
d
=
Duel
.
GetAttackTarget
()
if
not
d
or
not
d
:
IsSetCard
(
0x33
)
or
d
:
IsControler
(
1
-
tp
)
then
return
end
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_DAMAGE_CAL
)
e1
:
SetValue
(
-
300
)
a
:
RegisterEffect
(
e1
)
local
tp
=
e
:
GetHandlerPlayer
()
return
(
ph
==
PHASE_DAMAGE
or
ph
==
PHASE_DAMAGE_CAL
)
and
d
and
d
:
IsControler
(
tp
)
and
d
:
IsSetCard
(
0x33
)
end
function
c52869807
.
atktg
(
e
,
c
)
return
c
==
Duel
.
GetAttacker
()
end
c53527835.lua
View file @
7cfab277
...
...
@@ -7,20 +7,19 @@ function c53527835.initial_effect(c)
c
:
RegisterEffect
(
e1
)
--atk up
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetCode
(
E
VENT_DAMAGE_CALCULATING
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
E
FFECT_UPDATE_ATTACK
)
e2
:
SetRange
(
LOCATION_FZONE
)
e2
:
SetOperation
(
c53527835
.
atkup
)
e2
:
SetTargetRange
(
LOCATION_MZONE
,
LOCATION_MZONE
)
e2
:
SetCondition
(
c53527835
.
atkcon
)
e2
:
SetTarget
(
c53527835
.
atktg
)
e2
:
SetValue
(
1000
)
c
:
RegisterEffect
(
e2
)
end
function
c53527835
.
atkup
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
a
=
Duel
.
GetAttacker
()
function
c53527835
.
atkcon
(
e
)
return
Duel
.
GetCurrentPhase
()
==
PHASE_DAMAGE_CAL
and
Duel
.
GetAttackTarget
()
end
function
c53527835
.
atktg
(
e
,
c
)
local
d
=
Duel
.
GetAttackTarget
()
if
not
a
:
IsSetCard
(
0xc008
)
or
not
d
or
a
:
GetAttack
()
>=
d
:
GetAttack
()
then
return
end
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_DAMAGE_CAL
)
e1
:
SetValue
(
1000
)
a
:
RegisterEffect
(
e1
)
return
c
==
Duel
.
GetAttacker
()
and
c
:
IsSetCard
(
0xc008
)
and
c
:
GetAttack
()
<
d
:
GetAttack
()
end
c63035430.lua
View file @
7cfab277
...
...
@@ -7,20 +7,19 @@ function c63035430.initial_effect(c)
c
:
RegisterEffect
(
e1
)
--atk up
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetCode
(
E
VENT_DAMAGE_CALCULATING
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
E
FFECT_UPDATE_ATTACK
)
e2
:
SetRange
(
LOCATION_FZONE
)
e2
:
SetOperation
(
c63035430
.
atkup
)
e2
:
SetTargetRange
(
LOCATION_MZONE
,
LOCATION_MZONE
)
e2
:
SetCondition
(
c63035430
.
atkcon
)
e2
:
SetTarget
(
c63035430
.
atktg
)
e2
:
SetValue
(
1000
)
c
:
RegisterEffect
(
e2
)
end
function
c63035430
.
atkup
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
a
=
Duel
.
GetAttacker
()
function
c63035430
.
atkcon
(
e
)
return
Duel
.
GetCurrentPhase
()
==
PHASE_DAMAGE_CAL
and
Duel
.
GetAttackTarget
()
end
function
c63035430
.
atktg
(
e
,
c
)
local
d
=
Duel
.
GetAttackTarget
()
if
not
a
:
IsSetCard
(
0x3008
)
or
not
d
or
a
:
GetAttack
()
>=
d
:
GetAttack
()
then
return
end
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_DAMAGE_CAL
)
e1
:
SetValue
(
1000
)
a
:
RegisterEffect
(
e1
)
return
c
==
Duel
.
GetAttacker
()
and
c
:
IsSetCard
(
0x3008
)
and
c
:
GetAttack
()
<
d
:
GetAttack
()
end
c84171830.lua
View file @
7cfab277
...
...
@@ -17,11 +17,13 @@ function c84171830.initial_effect(c)
c
:
RegisterEffect
(
e2
)
--atk
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e3
:
SetCode
(
E
VENT_PRE_DAMAGE_CALCULATE
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetCode
(
E
FFECT_UPDATE_ATTACK
)
e3
:
SetRange
(
LOCATION_FZONE
)
e3
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e3
:
SetCondition
(
c84171830
.
atkcon
)
e3
:
SetOperation
(
c84171830
.
atkop
)
e3
:
SetTarget
(
c84171830
.
atktg
)
e3
:
SetValue
(
800
)
c
:
RegisterEffect
(
e3
)
--lv
local
e4
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -45,24 +47,13 @@ function c84171830.discon(e)
and
Duel
.
IsExistingMatchingCard
(
c84171830
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
and
not
Duel
.
IsExistingMatchingCard
(
c84171830
.
cfilter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
function
c84171830
.
atkcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
Duel
.
GetAttacker
()
local
atg
=
Duel
.
GetAttackTarget
()
return
c
:
IsControler
(
tp
)
and
bit
.
band
(
c
:
GetSummonType
(),
SUMMON_TYPE_ADVANCE
)
==
SUMMON_TYPE_ADVANCE
and
atg
and
atg
:
IsControler
(
1
-
tp
)
function
c84171830
.
atkcon
(
e
)
local
d
=
Duel
.
GetAttackTarget
()
return
Duel
.
GetCurrentPhase
()
==
PHASE_DAMAGE_CAL
and
d
and
d
:
IsControler
(
1
-
tp
)
end
function
c84171830
.
atktg
(
e
,
c
)
return
Duel
.
GetAttacker
()
==
c
end
function
c84171830
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetRange
(
LOCATION_FZONE
)
e1
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e1
:
SetTarget
(
c84171830
.
atktg
)
e1
:
SetValue
(
800
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_DAMAGE_CAL
)
e
:
GetHandler
():
RegisterEffect
(
e1
)
local
tp
=
e
:
GetHandlerPlayer
()
return
c
==
Duel
.
GetAttacker
()
and
bit
.
band
(
c
:
GetSummonType
(),
SUMMON_TYPE_ADVANCE
)
==
SUMMON_TYPE_ADVANCE
end
function
c84171830
.
filter
(
c
)
return
c
:
GetAttack
()
==
2800
and
c
:
GetDefence
()
==
1000
...
...
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