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
84b26ce9
Commit
84b26ce9
authored
Dec 05, 2011
by
argon.sun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fix
parent
37ddbd7d
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
7 additions
and
7 deletions
+7
-7
ocgcore/effect.cpp
ocgcore/effect.cpp
+1
-1
script/c30683373.lua
script/c30683373.lua
+1
-1
script/c48445393.lua
script/c48445393.lua
+2
-2
script/c55136228.lua
script/c55136228.lua
+1
-1
script/c64550682.lua
script/c64550682.lua
+1
-1
script/c79979666.lua
script/c79979666.lua
+1
-1
No files found.
ocgcore/effect.cpp
View file @
84b26ce9
...
...
@@ -247,7 +247,7 @@ int32 effect::is_activate_ready(uint8 playerid, event e, int32 neglect_cond, int
return
TRUE
;
}
int32
effect
::
is_condition_check
(
uint8
playerid
,
event
e
)
{
if
((
handler
->
current
.
location
&
LOCATION_ONFIELD
)
if
((
handler
->
current
.
location
&
LOCATION_ONFIELD
)
&&
(
type
&
EFFECT_TYPE_FIELD
)
&&
(
!
handler
->
is_position
(
POS_FACEUP
)
||
!
handler
->
is_status
(
STATUS_EFFECT_ENABLED
)))
return
FALSE
;
if
(
!
condition
)
...
...
script/c30683373.lua
View file @
84b26ce9
...
...
@@ -23,6 +23,6 @@ end
function
c30683373
.
activate
(
e
)
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
and
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
Destroy
(
sg
,
REASON_EFFECT
)
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
end
end
script/c48445393.lua
View file @
84b26ce9
...
...
@@ -14,7 +14,7 @@ function c48445393.desfilter(c)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x24
)
and
c
:
IsDestructable
()
end
function
c48445393
.
sfilter
(
c
)
return
c
:
IsSetCard
(
0x24
)
and
c
:
IsAbleToGrave
()
return
c
:
IsSetCard
(
0x24
)
and
c
:
Is
Type
(
TYPE_MONSTER
)
and
c
:
Is
AbleToGrave
()
end
function
c48445393
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c48445393
.
desfilter
(
chkc
)
end
...
...
@@ -24,7 +24,7 @@ function c48445393.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c48445393
.
desfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_T
P
GRAVE
,
nil
,
1
,
tp
,
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_T
O
GRAVE
,
nil
,
1
,
tp
,
LOCATION_DECK
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
tp
,
1
)
end
function
c48445393
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
script/c55136228.lua
View file @
84b26ce9
...
...
@@ -34,7 +34,7 @@ function c55136228.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local
g
=
Duel
.
SelectTarget
(
tp
,
c55136228
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
end
function
c55136228
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
sg
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
then
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
script/c64550682.lua
View file @
84b26ce9
...
...
@@ -39,7 +39,7 @@ end
function
c64550682
.
spcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
return
Duel
.
GetLocationCount
(
c
:
GetControler
(),
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c64550682
.
spfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
and
Duel
.
IsExistingMatchingCard
(
c64550682
.
spfilter
,
c
:
GetControler
()
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
function
c64550682
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
GetSummonType
()
==
SUMMON_TYPE_SPECIAL
+
1
...
...
script/c79979666.lua
View file @
84b26ce9
...
...
@@ -35,7 +35,7 @@ function c79979666.filter(c)
return
not
c
:
IsStatus
(
STATUS_LEAVE_CONFIRMED
)
end
function
c79979666
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
not
Duel
.
IsExistingMatchingCard
(
c79979666
.
filter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
e
:
GetHandler
())
return
not
Duel
.
IsExistingMatchingCard
(
c79979666
.
filter
,
tp
,
LOCATION_ONFIELD
+
LOCATION_HAND
,
0
,
1
,
e
:
GetHandler
())
end
function
c79979666
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
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