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
4c56d879
Commit
4c56d879
authored
Mar 01, 2013
by
argon.sun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
84996eee
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
29 additions
and
23 deletions
+29
-23
ocgcore/operations.cpp
ocgcore/operations.cpp
+18
-16
script/c1475311.lua
script/c1475311.lua
+1
-1
script/c30459350.lua
script/c30459350.lua
+8
-0
script/c40465719.lua
script/c40465719.lua
+1
-1
script/c72710085.lua
script/c72710085.lua
+1
-5
No files found.
ocgcore/operations.cpp
View file @
4c56d879
...
...
@@ -2721,6 +2721,7 @@ int32 field::send_to(uint16 step, group * targets, effect * reason_effect, uint3
pcard->fieldid = infos.field_id++;
pcard->reset(RESET_LEAVE, RESET_EVENT);
remove_card(pcard);
leave.insert(pcard);
continue;
}
if(dest == LOCATION_GRAVE) {
...
...
@@ -2829,8 +2830,7 @@ int32 field::send_to(uint16 step, group * targets, effect * reason_effect, uint3
equipings.insert(equipc);
}
}
if
(
pcard
->
data
.
type
&
TYPE_TOKEN
)
continue
;
if(!(pcard->data.type & TYPE_TOKEN)) {
pcard->enable_field_effect(TRUE);
if(nloc == LOCATION_HAND) {
tohand.insert(pcard);
...
...
@@ -2844,7 +2844,9 @@ int32 field::send_to(uint16 step, group * targets, effect * reason_effect, uint3
tograve.insert(pcard);
pcard->reset(RESET_TOGRAVE, RESET_EVENT);
raise_single_event(*cit, 0, EVENT_TO_GRAVE, pcard->current.reason_effect, pcard->current.reason, pcard->current.reason_player, 0, 0);
}
else
if
(
nloc
==
LOCATION_REMOVED
)
{
}
}
if(nloc == LOCATION_REMOVED || ((pcard->data.type & TYPE_TOKEN) && ((pcard->operation_param >> 8) & 0xff) == LOCATION_REMOVED)) {
remove.insert(pcard);
if(pcard->current.reason & REASON_TEMPORARY)
pcard->reset(RESET_TEMP_REMOVE, RESET_EVENT);
...
...
script/c1475311.lua
View file @
4c56d879
...
...
@@ -11,7 +11,7 @@ function c1475311.initial_effect(c)
c
:
RegisterEffect
(
e1
)
end
function
c1475311
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanDraw
(
tp
,
2
)
end
if
chk
==
0
then
return
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
30459350
)
and
Duel
.
IsPlayerCanDraw
(
tp
,
2
)
end
Duel
.
SetTargetPlayer
(
tp
)
Duel
.
SetTargetParam
(
2
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
tp
,
2
)
...
...
script/c30459350.lua
View file @
4c56d879
...
...
@@ -13,4 +13,12 @@ function c30459350.initial_effect(c)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetProperty
(
EFFECT_FLAG_IGNORE_RANGE
+
EFFECT_FLAG_SET_AVAILABLE
)
c
:
RegisterEffect
(
e2
)
--
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetCode
(
30459350
)
e3
:
SetRange
(
LOCATION_SZONE
)
e3
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e3
:
SetTargetRange
(
1
,
1
)
c
:
RegisterEffect
(
e3
)
end
script/c40465719.lua
View file @
4c56d879
...
...
@@ -11,7 +11,7 @@ function c40465719.initial_effect(c)
c
:
RegisterEffect
(
e1
)
end
function
c40465719
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanDraw
(
tp
,
2
)
end
if
chk
==
0
then
return
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
30459350
)
and
Duel
.
IsPlayerCanDraw
(
tp
,
2
)
end
Duel
.
SetTargetPlayer
(
tp
)
Duel
.
SetTargetParam
(
2
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
tp
,
2
)
...
...
script/c72710085.lua
View file @
4c56d879
...
...
@@ -18,12 +18,8 @@ function c72710085.initial_effect(c)
e2
:
SetOperation
(
c72710085
.
tgop
)
c
:
RegisterEffect
(
e2
)
end
function
c72710085
.
cfilter
(
c
)
return
not
c
:
IsType
(
TYPE_TOKEN
)
end
function
c72710085
.
tgcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
eg
:
Filter
(
c72710085
.
cfilter
,
nil
)
return
g
:
GetCount
()
==
1
and
g
:
GetFirst
():
IsPreviousLocation
(
LOCATION_GRAVE
)
and
g
:
GetFirst
():
IsControler
(
tp
)
return
eg
:
GetCount
()
==
1
and
eg
:
GetFirst
():
IsPreviousLocation
(
LOCATION_GRAVE
)
and
eg
:
GetFirst
():
IsControler
(
tp
)
end
function
c72710085
.
tgcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetFlagEffect
(
tp
,
72710085
)
==
0
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