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
747a0a64
Commit
747a0a64
authored
Aug 19, 2014
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
778ef311
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
6 deletions
+13
-6
ocgcore/operations.cpp
ocgcore/operations.cpp
+1
-1
ocgcore/processor.cpp
ocgcore/processor.cpp
+9
-2
script/c16195942.lua
script/c16195942.lua
+1
-1
script/c16304628.lua
script/c16304628.lua
+1
-1
script/c55727845.lua
script/c55727845.lua
+1
-1
No files found.
ocgcore/operations.cpp
View file @
747a0a64
...
...
@@ -4210,10 +4210,10 @@ int32 field::select_tribute_cards(int16 step, uint8 playerid, uint8 cancelable,
rmax
+=
(
*
cit
)
->
operation_param
;
for
(
auto
cit
=
core
.
release_cards_ex
.
begin
();
cit
!=
core
.
release_cards_ex
.
end
();
++
cit
)
rmax
+=
(
*
cit
)
->
operation_param
;
core
.
temp_var
[
0
]
=
0
;
if
(
rmax
<
min
)
returns
.
ivalue
[
0
]
=
TRUE
;
else
if
(
!
core
.
release_cards_ex_sum
.
empty
())
{
core
.
temp_var
[
0
]
=
0
;
if
(
rmax
==
0
&&
min
==
2
)
core
.
temp_var
[
0
]
=
1
;
add_process
(
PROCESSOR_SELECT_YESNO
,
0
,
0
,
0
,
playerid
,
92
);
...
...
ocgcore/processor.cpp
View file @
747a0a64
...
...
@@ -3098,7 +3098,7 @@ int32 field::process_battle_command(uint16 step) {
core
.
attacker
->
announced_cards
[
0
]
=
0
;
core
.
attacker
->
announce_count
++
;
attack_all_target_check
();
if
(
!
atk_disabled
)
{
if
(
!
core
.
attacker
->
is_status
(
STATUS_ATTACK_CANCELED
)
)
{
if
(
core
.
attack_target
)
core
.
attacker
->
attacked_cards
[
core
.
attack_target
->
fieldid_r
]
=
core
.
attack_target
;
else
...
...
@@ -5168,11 +5168,18 @@ int32 field::adjust_step(uint16 step) {
return
FALSE
;
}
case
13
:
{
//attack cancel
card
*
attacker
=
core
.
attacker
;
if
(
attacker
&&
attacker
->
is_affected_by_effect
(
EFFECT_CANNOT_ATTACK
))
attacker
->
set_status
(
STATUS_ATTACK_CANCELED
,
TRUE
);
return
FALSE
;
}
case
14
:
{
raise_event
((
card
*
)
0
,
EVENT_ADJUST
,
0
,
0
,
PLAYER_NONE
,
PLAYER_NONE
,
0
);
process_instant_event
();
return
FALSE
;
}
case
1
4
:
{
case
1
5
:
{
if
(
core
.
re_adjust
)
{
core
.
units
.
begin
()
->
step
=
-
1
;
return
FALSE
;
...
...
script/c16195942.lua
View file @
747a0a64
...
...
@@ -27,7 +27,7 @@ end
function
c16195942
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
then
if
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
and
not
tc
:
IsImmuneToEffect
(
e
)
then
local
atk
=
tc
:
GetAttack
()
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
script/c16304628.lua
View file @
747a0a64
...
...
@@ -38,7 +38,7 @@ end
function
c16304628
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
and
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
then
if
tc
and
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
and
not
tc
:
IsImmuneToEffect
(
e
)
then
local
atk
=
tc
:
GetAttack
()
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
script/c55727845.lua
View file @
747a0a64
...
...
@@ -28,7 +28,7 @@ end
function
c55727845
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
if
c
:
IsRelateToEffect
(
e
)
and
c
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
then
if
c
:
IsRelateToEffect
(
e
)
and
c
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
and
not
tc
:
IsImmuneToEffect
(
e
)
then
local
atk
=
tc
:
GetAttack
()
/
2
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
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