Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-222DIY-cards
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
Ai
ygopro-222DIY-cards
Commits
b81a7120
Commit
b81a7120
authored
Aug 08, 2020
by
TanakaKotoha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
ed0e255e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
13 deletions
+11
-13
expansions/script/c1000815.lua
expansions/script/c1000815.lua
+10
-12
expansions/script/c1000816.lua
expansions/script/c1000816.lua
+1
-1
No files found.
expansions/script/c1000815.lua
View file @
b81a7120
--追想的变奏
function
c1000815
.
initial_effect
(
c
)
c
:
EnableCounterPermit
(
0x3b
,
LOCATION_SZONE
)
c
:
EnableCounterPermit
(
0x3b
)
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
...
...
@@ -9,11 +9,10 @@ function c1000815.initial_effect(c)
c
:
RegisterEffect
(
e1
)
--counter
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetCategory
(
CATEGORY_COUNTER
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
EVENT_TO_GRAVE
)
e2
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetCondition
(
c1000815
.
cntcon
)
e2
:
SetOperation
(
c1000815
.
addc
)
c
:
RegisterEffect
(
e2
)
--atkup
...
...
@@ -59,14 +58,13 @@ function c1000815.initial_effect(c)
c
:
RegisterEffect
(
e7
)
--
end
function
c1000815
.
c
n
filter
(
c
,
tp
)
return
c
:
GetOwn
er
()
==
1
-
tp
function
c1000815
.
cfilter
(
c
,
tp
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
GetControl
er
()
==
1
-
tp
end
function
c1000815
.
cntcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
c1000815
.
cnfilter
,
1
,
nil
,
tp
)
end
function
c1000815
.
addc
(
e
,
c
)
function
c1000815
.
addc
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
eg
:
IsExists
(
c1000815
.
cfilter
,
1
,
nil
,
tp
)
then
e
:
GetHandler
():
AddCounter
(
0x3b
,
1
)
end
end
function
c1000815
.
atkval
(
e
,
c
)
return
e
:
GetHandler
():
GetCounter
(
0x3b
)
*
100
...
...
@@ -74,7 +72,7 @@ end
function
c1000815
.
cottg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
e
:
GetHandler
():
GetCounter
(
0x3b
)
>
0
end
local
dam
=
e
:
GetHandler
():
GetCounter
(
0x3b
)
*
1
00
local
dam
=
e
:
GetHandler
():
GetCounter
(
0x3b
)
*
2
00
Duel
.
SetTargetPlayer
(
tp
)
Duel
.
SetTargetParam
(
dam
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_RECOVER
,
nil
,
0
,
tp
,
dam
)
...
...
expansions/script/c1000816.lua
View file @
b81a7120
...
...
@@ -45,7 +45,7 @@ function c1000816.initial_effect(c)
c
:
RegisterEffect
(
e6
)
end
function
c1000816
.
cntcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
ep
==
tp
and
ev
>=
1000
and
bit
.
band
(
r
,
REASON_EFFECT
+
REASON_BATTLE
)
~=
0
return
ep
==
tp
and
rp
==
1
-
tp
and
(
re
or
(
Duel
.
GetAttacker
()
and
Duel
.
GetAttacker
():
IsControler
(
1
-
tp
)))
end
function
c1000816
.
addc
(
e
,
c
)
e
:
GetHandler
():
AddCounter
(
0x3b
,
1
)
...
...
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