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
9be4bb39
Commit
9be4bb39
authored
Jan 22, 2018
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
c9eb6d48
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
10 deletions
+11
-10
script/c101004028.lua
script/c101004028.lua
+1
-0
script/c101004033.lua
script/c101004033.lua
+5
-4
script/c101004062.lua
script/c101004062.lua
+0
-1
script/c101004078.lua
script/c101004078.lua
+4
-4
script/c101004100.lua
script/c101004100.lua
+1
-1
No files found.
script/c101004028.lua
View file @
9be4bb39
...
@@ -27,6 +27,7 @@ function c101004028.initial_effect(c)
...
@@ -27,6 +27,7 @@ function c101004028.initial_effect(c)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetCountLimit
(
1
,
101004128
)
e3
:
SetCountLimit
(
1
,
101004128
)
e3
:
SetCondition
(
c101004028
.
setcon
)
e3
:
SetCondition
(
c101004028
.
setcon
)
e3
:
SetCost
(
aux
.
bfgcost
)
e3
:
SetTarget
(
c101004028
.
settg
)
e3
:
SetTarget
(
c101004028
.
settg
)
e3
:
SetOperation
(
c101004028
.
setop
)
e3
:
SetOperation
(
c101004028
.
setop
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
...
...
script/c101004033.lua
View file @
9be4bb39
...
@@ -21,14 +21,15 @@ end
...
@@ -21,14 +21,15 @@ end
function
c101004033
.
discon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c101004033
.
discon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ex1
,
g1
,
gc1
,
dp1
,
dv1
=
Duel
.
GetOperationInfo
(
ev
,
CATEGORY_TOHAND
)
local
ex1
,
g1
,
gc1
,
dp1
,
dv1
=
Duel
.
GetOperationInfo
(
ev
,
CATEGORY_TOHAND
)
local
ex2
,
g2
,
gc2
,
dp2
,
dv2
=
Duel
.
GetOperationInfo
(
ev
,
CATEGORY_TODECK
)
local
ex2
,
g2
,
gc2
,
dp2
,
dv2
=
Duel
.
GetOperationInfo
(
ev
,
CATEGORY_TODECK
)
-- local ex3,g3,gc3,dp3,dv3=Duel.GetOperationInfo(ev,CATEGORY_TOEXTRA)
local
ex4
,
g4
,
gc4
,
dp4
,
dv4
=
Duel
.
GetOperationInfo
(
ev
,
CATEGORY_SPECIAL_SUMMON
)
local
ex4
,
g4
,
gc4
,
dp4
,
dv4
=
Duel
.
GetOperationInfo
(
ev
,
CATEGORY_SPECIAL_SUMMON
)
local
ex5
,
g5
,
gc5
,
dp5
,
dv5
=
Duel
.
GetOperationInfo
(
ev
,
CATEGORY_TOGRAVE
)
local
ex5
,
g5
,
gc5
,
dp5
,
dv5
=
Duel
.
GetOperationInfo
(
ev
,
CATEGORY_REMOVE
)
local
ex6
=
re
:
IsHasCategory
(
CATEGORY_LEAVE_GRAVE
)
return
((
ex1
and
(
bit
.
band
(
dv1
,
LOCATION_GRAVE
)
==
LOCATION_GRAVE
or
g1
and
g1
:
IsExists
(
Card
.
IsLocation
,
1
,
nil
,
LOCATION_GRAVE
)))
return
((
ex1
and
(
bit
.
band
(
dv1
,
LOCATION_GRAVE
)
==
LOCATION_GRAVE
or
g1
and
g1
:
IsExists
(
Card
.
IsLocation
,
1
,
nil
,
LOCATION_GRAVE
)))
or
(
ex2
and
(
bit
.
band
(
dv2
,
LOCATION_GRAVE
)
==
LOCATION_GRAVE
or
g2
and
g2
:
IsExists
(
Card
.
IsLocation
,
1
,
nil
,
LOCATION_GRAVE
)))
or
(
ex2
and
(
bit
.
band
(
dv2
,
LOCATION_GRAVE
)
==
LOCATION_GRAVE
or
g2
and
g2
:
IsExists
(
Card
.
IsLocation
,
1
,
nil
,
LOCATION_GRAVE
)))
-- or (ex3 and (bit.band(dv3,LOCATION_GRAVE)==LOCATION_GRAVE or g3 and g3:IsExists(Card.IsLocation,1,nil,LOCATION_GRAVE)))
or
(
ex4
and
(
bit
.
band
(
dv4
,
LOCATION_GRAVE
)
==
LOCATION_GRAVE
or
g4
and
g4
:
IsExists
(
Card
.
IsLocation
,
1
,
nil
,
LOCATION_GRAVE
)))
or
(
ex4
and
(
bit
.
band
(
dv4
,
LOCATION_GRAVE
)
==
LOCATION_GRAVE
or
g4
and
g4
:
IsExists
(
Card
.
IsLocation
,
1
,
nil
,
LOCATION_GRAVE
)))
or
(
ex5
and
(
bit
.
band
(
dv5
,
LOCATION_GRAVE
)
==
LOCATION_GRAVE
or
g5
and
g5
:
IsExists
(
Card
.
IsLocation
,
1
,
nil
,
LOCATION_GRAVE
)))
or
(
ex5
and
(
bit
.
band
(
dv5
,
LOCATION_GRAVE
)
==
LOCATION_GRAVE
or
g5
and
g5
:
IsExists
(
Card
.
IsLocation
,
1
,
nil
,
LOCATION_GRAVE
)))
)
or
ex6
)
and
Duel
.
IsChainNegatable
(
ev
)
and
Duel
.
IsChainNegatable
(
ev
)
end
end
function
c101004033
.
discost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c101004033
.
discost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
...
...
script/c101004062.lua
View file @
9be4bb39
...
@@ -7,7 +7,6 @@ function c101004062.initial_effect(c)
...
@@ -7,7 +7,6 @@ function c101004062.initial_effect(c)
e1
:
SetDescription
(
aux
.
Stringid
(
101004062
,
0
))
e1
:
SetDescription
(
aux
.
Stringid
(
101004062
,
0
))
e1
:
SetCategory
(
CATEGORY_DRAW
)
e1
:
SetCategory
(
CATEGORY_DRAW
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCountLimit
(
1
,
101004062
)
e1
:
SetCountLimit
(
1
,
101004062
)
e1
:
SetCondition
(
c101004062
.
condition
)
e1
:
SetCondition
(
c101004062
.
condition
)
...
...
script/c101004078.lua
View file @
9be4bb39
...
@@ -5,7 +5,7 @@ function c101004078.initial_effect(c)
...
@@ -5,7 +5,7 @@ function c101004078.initial_effect(c)
--Activate
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCategory
(
CATEGORY_
TOGRAVE
+
CATEGORY_HANDES
)
e1
:
SetCategory
(
CATEGORY_
REMOVE
)
e1
:
SetCode
(
EVENT_TO_HAND
)
e1
:
SetCode
(
EVENT_TO_HAND
)
e1
:
SetCondition
(
c101004078
.
condition
)
e1
:
SetCondition
(
c101004078
.
condition
)
e1
:
SetTarget
(
c101004078
.
target
)
e1
:
SetTarget
(
c101004078
.
target
)
...
@@ -13,7 +13,7 @@ function c101004078.initial_effect(c)
...
@@ -13,7 +13,7 @@ function c101004078.initial_effect(c)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c101004078
.
cfilter
(
c
,
tp
)
function
c101004078
.
cfilter
(
c
,
tp
)
return
c
:
IsControler
(
tp
)
and
c
:
Is
PreviousLocation
(
LOCATION_ONFIELD
+
LOCATION_GRAVE
)
return
c
:
IsControler
(
tp
)
and
c
:
Is
Reason
(
REASON_EFFECT
)
and
(
c
:
IsPreviousLocation
(
LOCATION_GRAVE
)
or
(
c
:
IsPreviousLocation
(
LOCATION_ONFIELD
)
and
c
:
IsPreviousPosition
(
POS_FACEUP
))
)
end
end
function
c101004078
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c101004078
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
c101004078
.
cfilter
,
1
,
nil
,
1
-
tp
)
return
eg
:
IsExists
(
c101004078
.
cfilter
,
1
,
nil
,
1
-
tp
)
...
@@ -21,7 +21,7 @@ end
...
@@ -21,7 +21,7 @@ end
function
c101004078
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c101004078
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
true
end
Duel
.
SetTargetCard
(
eg
)
Duel
.
SetTargetCard
(
eg
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_
HANDES
,
nil
,
0
,
1
-
tp
,
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_
REMOVE
,
nil
,
0
,
1
-
tp
,
1
)
end
end
function
c101004078
.
filter
(
c
,
e
,
tp
)
function
c101004078
.
filter
(
c
,
e
,
tp
)
return
c
:
IsRelateToEffect
(
e
)
and
c101004078
.
cfilter
(
c
,
tp
)
return
c
:
IsRelateToEffect
(
e
)
and
c101004078
.
cfilter
(
c
,
tp
)
...
@@ -30,7 +30,7 @@ function c101004078.rmfilter(c,g)
...
@@ -30,7 +30,7 @@ function c101004078.rmfilter(c,g)
return
c
:
IsAbleToRemove
()
and
g
:
IsExists
(
Card
.
IsCode
,
1
,
nil
,
c
:
GetCode
())
return
c
:
IsAbleToRemove
()
and
g
:
IsExists
(
Card
.
IsCode
,
1
,
nil
,
c
:
GetCode
())
end
end
function
c101004078
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c101004078
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
dg
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
):
Filter
(
c101004078
.
filter
,
nil
,
e
,
tp
)
local
dg
=
eg
:
Filter
(
c101004078
.
filter
,
nil
,
e
,
1
-
tp
)
local
g
=
Duel
.
GetFieldGroup
(
tp
,
0
,
LOCATION_HAND
)
local
g
=
Duel
.
GetFieldGroup
(
tp
,
0
,
LOCATION_HAND
)
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
Duel
.
ConfirmCards
(
tp
,
g
)
Duel
.
ConfirmCards
(
tp
,
g
)
...
...
script/c101004100.lua
View file @
9be4bb39
...
@@ -51,7 +51,7 @@ end
...
@@ -51,7 +51,7 @@ end
function
c101004100
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c101004100
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
then
if
tc
:
IsRelateToEffect
(
e
)
then
if
Duel
.
SpecialSummonStep
(
tc
,
0
,
tp
,
1
-
tp
,
false
,
false
,
POS_FACE
DOWN
_DEFENSE
)
then
if
Duel
.
SpecialSummonStep
(
tc
,
0
,
tp
,
1
-
tp
,
false
,
false
,
POS_FACE
UP
_DEFENSE
)
then
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_CHANGE_RACE
)
e1
:
SetCode
(
EFFECT_CHANGE_RACE
)
...
...
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