Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-pre-data
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
MyCard
ygopro-pre-data
Commits
7afd51ce
Commit
7afd51ce
authored
Dec 25, 2017
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
f79dd741
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
14 deletions
+13
-14
script/c101004020.lua
script/c101004020.lua
+1
-1
script/c101004039.lua
script/c101004039.lua
+2
-2
script/c50366775.lua
script/c50366775.lua
+1
-1
script/c85638822.lua
script/c85638822.lua
+8
-9
script/c86750474.lua
script/c86750474.lua
+1
-1
No files found.
script/c101004020.lua
View file @
7afd51ce
...
...
@@ -50,7 +50,7 @@ function c101004020.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SendtoGrave
(
tc
,
REASON_COST
)
end
function
c101004020
.
thfilter
(
c
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
(
c
:
IsSetCard
(
0x400d
)
or
c
:
IsSetCard
(
0x212
))
and
c
:
IsAbleToHand
()
return
c
:
IsType
(
TYPE_MONSTER
)
and
not
c
:
IsCode
(
101004022
)
and
(
c
:
IsSetCard
(
0x400d
)
or
c
:
IsSetCard
(
0x212
))
and
c
:
IsAbleToHand
()
end
function
c101004020
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c101004020
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
...
...
script/c101004039.lua
View file @
7afd51ce
...
...
@@ -20,7 +20,7 @@ function c101004039.initial_effect(c)
e2
:
SetDescription
(
aux
.
Stringid
(
101004039
,
1
))
e2
:
SetCategory
(
CATEGORY_DAMAGE
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_PLAYER_TARGET
)
e2
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_
DAMAGE_STEP
+
EFFECT_FLAG_
PLAYER_TARGET
)
e2
:
SetCode
(
EVENT_DESTROYED
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCountLimit
(
1
,
101004039
)
...
...
@@ -61,5 +61,5 @@ function c101004039.damtg(e,tp,eg,ep,ev,re,r,rp,chk)
end
function
c101004039
.
damop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
p
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PLAYER
)
Duel
.
Damage
(
p
,
Duel
.
GetFieldGroupCount
(
p
,
LOCATION_HAND
,
0
)
*
3
00
,
REASON_EFFECT
)
Duel
.
Damage
(
p
,
Duel
.
GetFieldGroupCount
(
p
,
LOCATION_HAND
,
0
)
*
2
00
,
REASON_EFFECT
)
end
script/c50366775.lua
View file @
7afd51ce
...
...
@@ -17,7 +17,7 @@ function c50366775.initial_effect(c)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetCode
(
EVENT_TO_GRAVE
)
e2
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e2
:
SetCountLimit
(
1
,
100225102
)
e2
:
SetCountLimit
(
1
,
50366776
)
e2
:
SetCondition
(
c50366775
.
thcon
)
e2
:
SetTarget
(
c50366775
.
thtg
)
e2
:
SetOperation
(
c50366775
.
thop
)
...
...
script/c85638822.lua
View file @
7afd51ce
...
...
@@ -2,7 +2,7 @@
--Gouki Deathmatch
--Script by nekrozar
function
c85638822
.
initial_effect
(
c
)
c
:
EnableCounterPermit
(
0x
1
46
)
c
:
EnableCounterPermit
(
0x46
)
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_COUNTER
)
...
...
@@ -34,13 +34,13 @@ function c85638822.initial_effect(c)
c
:
RegisterEffect
(
e3
)
end
function
c85638822
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsCanAddCounter
(
tp
,
0x
1
46
,
3
,
e
:
GetHandler
())
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_COUNTER
,
nil
,
3
,
0
,
0x
1
46
)
if
chk
==
0
then
return
Duel
.
IsCanAddCounter
(
tp
,
0x46
,
3
,
e
:
GetHandler
())
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_COUNTER
,
nil
,
3
,
0
,
0x46
)
end
function
c85638822
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
then
c
:
AddCounter
(
0x
1
46
,
3
)
c
:
AddCounter
(
0x46
,
3
)
end
end
function
c85638822
.
rccon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
@@ -52,13 +52,13 @@ end
function
c85638822
.
rcop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
then
c
:
RemoveCounter
(
tp
,
0x
146
,
3
,
REASON_EFFECT
)
c
:
RegisterFlagEffect
(
85638822
,
RESET_EVENT
+
0x1fe0000
,
0
,
0
)
c
:
RemoveCounter
(
tp
,
0x
46
,
1
,
REASON_EFFECT
)
c
:
RegisterFlagEffect
(
85638822
,
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_BATTLE
,
0
,
0
)
end
end
function
c85638822
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
c
:
GetCounter
(
0x
146
)
==
0
and
c
:
GetFlagEffect
(
85638822
)
>
2
return
c
:
GetCounter
(
0x
46
)
==
0
and
c
:
GetFlagEffect
(
85638822
)
>
0
end
function
c85638822
.
spfilter
(
c
,
e
,
sp
)
return
c
:
IsSetCard
(
0xfc
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
sp
,
false
,
false
)
...
...
@@ -84,7 +84,6 @@ function c85638822.spop(e,tp,eg,ep,ev,re,r,rp)
tg
:
Remove
(
Card
.
IsCode
,
nil
,
sg
:
GetFirst
():
GetCode
())
end
if
g
:
GetCount
()
>
0
and
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
~=
0
then
c
:
AddCounter
(
0x146
,
3
)
c
:
ResetFlagEffect
(
85638822
)
c
:
AddCounter
(
0x46
,
3
)
end
end
script/c86750474.lua
View file @
7afd51ce
...
...
@@ -22,7 +22,7 @@ function c86750474.initial_effect(c)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e2
:
SetCode
(
EVENT_DESTROYED
)
e2
:
SetCountLimit
(
1
,
100225106
)
e2
:
SetCountLimit
(
1
,
86750475
)
e2
:
SetCondition
(
c86750474
.
damcon
)
e2
:
SetTarget
(
c86750474
.
damtg2
)
e2
:
SetOperation
(
c86750474
.
damop2
)
...
...
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