Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-2pick
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-2pick
Commits
1a165388
Commit
1a165388
authored
Mar 16, 2012
by
argon.sun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
79dc2d3b
Changes
6
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
82 additions
and
38 deletions
+82
-38
ocgcore/card.cpp
ocgcore/card.cpp
+4
-0
ocgcore/processor.cpp
ocgcore/processor.cpp
+33
-32
script/c11596936.lua
script/c11596936.lua
+1
-1
script/c14785765.lua
script/c14785765.lua
+16
-4
script/c41639001.lua
script/c41639001.lua
+1
-1
script/c51047350.lua
script/c51047350.lua
+27
-0
No files found.
ocgcore/card.cpp
View file @
1a165388
...
...
@@ -481,6 +481,8 @@ uint32 card::get_ritual_level(card* pcard) {
uint32
card
::
get_attribute
()
{
if
(
!
(
current
.
location
&
(
LOCATION_MZONE
+
LOCATION_GRAVE
)))
return
data
.
attribute
;
if
((
current
.
location
==
LOCATION_GRAVE
)
&&
(
data
.
type
&
(
TYPE_SPELL
+
TYPE_TRAP
)))
return
data
.
attribute
;
if
(
temp
.
attribute
!=
0xffffffff
)
return
temp
.
attribute
;
effect_set
effects
;
...
...
@@ -504,6 +506,8 @@ uint32 card::get_attribute() {
uint32
card
::
get_race
()
{
if
(
!
(
current
.
location
&
(
LOCATION_MZONE
+
LOCATION_GRAVE
)))
return
data
.
race
;
if
((
current
.
location
==
LOCATION_GRAVE
)
&&
(
data
.
type
&
(
TYPE_SPELL
+
TYPE_TRAP
)))
return
data
.
race
;
if
(
temp
.
race
!=
0xffffffff
)
return
temp
.
race
;
effect_set
effects
;
...
...
ocgcore/processor.cpp
View file @
1a165388
This diff is collapsed.
Click to expand it.
script/c11596936.lua
View file @
1a165388
...
...
@@ -21,7 +21,7 @@ function c11596936.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
ShuffleHand
(
tp
)
end
function
c11596936
.
filter
(
c
)
return
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
IsDestructable
()
return
c
:
Is
Facedown
()
and
c
:
Is
Type
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
IsDestructable
()
end
function
c11596936
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c11596936
.
filter
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
)
end
...
...
script/c14785765.lua
View file @
1a165388
...
...
@@ -17,14 +17,26 @@ function c14785765.costfilter(c)
return
c
:
IsFaceup
()
and
c
:
IsAbleToHandAsCost
()
end
function
c14785765
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
c14785765
[
tp
]
and
Duel
.
IsExistingMatchingCard
(
c14785765
.
costfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
end
if
chk
==
0
then
if
not
c14785765
[
tp
]
then
return
false
end
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c14785765
.
costfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
else
return
Duel
.
IsExistingMatchingCard
(
c14785765
.
costfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
end
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RTOHAND
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
==
0
then
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c14785765
.
costfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
Duel
.
SendtoHand
(
g
,
nil
,
REASON_COST
)
else
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c14785765
.
costfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
1
,
nil
)
Duel
.
SendtoHand
(
g
,
nil
,
REASON_COST
)
end
c14785765
[
tp
]
=
false
end
function
c14785765
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
0
,
tp
,
400
)
end
...
...
script/c41639001.lua
View file @
1a165388
...
...
@@ -3,7 +3,7 @@ function c41639001.initial_effect(c)
--spsummon
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
41639001
,
0
))
e1
:
SetType
(
EFFECT_TYPE_QUICK_
F
)
e1
:
SetType
(
EFFECT_TYPE_QUICK_
O
)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetCode
(
EVENT_BECOME_TARGET
)
e1
:
SetRange
(
LOCATION_MZONE
)
...
...
script/c51047350.lua
0 → 100644
View file @
1a165388
--`ɡ֥쥤`
function
c51047350
.
initial_effect
(
c
)
--special summon
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_SPSUMMON_PROC
)
e1
:
SetProperty
(
EFFECT_FLAG_SPSUM_PARAM
)
e1
:
SetTargetRange
(
POS_FACEUP_ATTACK
,
0
)
e1
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetRange
(
LOCATION_HAND
)
e1
:
SetCondition
(
c51047350
.
spcon
)
e1
:
SetOperation
(
c51047350
.
spop
)
c
:
RegisterEffect
(
e1
)
end
function
c51047350
.
filter
(
c
)
return
c
:
GetSequence
()
~=
5
and
c
:
IsAbleToGraveAsCost
()
end
function
c51047350
.
spcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
return
Duel
.
GetLocationCount
(
c
:
GetControler
(),
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c51047350
.
filter
,
c
:
GetControler
(),
LOCATION_SZONE
,
0
,
1
,
nil
)
end
function
c51047350
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c51047350
.
filter
,
tp
,
LOCATION_SZONE
,
0
,
1
,
1
,
nil
)
Duel
.
SendtoGrave
(
g
,
REASON_COST
)
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