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
b5972974
Commit
b5972974
authored
Dec 28, 2011
by
argon.sun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
fe4e9898
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
9 deletions
+20
-9
ocgcore/processor.cpp
ocgcore/processor.cpp
+12
-8
script/c30757396.lua
script/c30757396.lua
+4
-0
script/c58601383.lua
script/c58601383.lua
+4
-1
No files found.
ocgcore/processor.cpp
View file @
b5972974
...
@@ -2529,6 +2529,18 @@ int32 field::process_battle_command(uint16 step) {
...
@@ -2529,6 +2529,18 @@ int32 field::process_battle_command(uint16 step) {
core
.
sub_attacker
=
0
;
core
.
sub_attacker
=
0
;
core
.
sub_attack_target
=
(
card
*
)
0xffffffff
;
core
.
sub_attack_target
=
(
card
*
)
0xffffffff
;
core
.
attack_state
[
infos
.
turn_player
]
=
TRUE
;
core
.
attack_state
[
infos
.
turn_player
]
=
TRUE
;
pduel
->
write_buffer8
(
MSG_ATTACK
);
pduel
->
write_buffer32
(
core
.
attacker
->
get_info_location
());
if
(
core
.
attack_target
)
{
raise_single_event
(
core
.
attack_target
,
EVENT_BE_BATTLE_TARGET
,
0
,
0
,
0
,
1
-
infos
.
turn_player
,
0
);
raise_event
(
core
.
attack_target
,
EVENT_BE_BATTLE_TARGET
,
0
,
0
,
0
,
1
-
infos
.
turn_player
,
0
);
pduel
->
write_buffer32
(
core
.
attack_target
->
get_info_location
());
}
else
pduel
->
write_buffer32
(
0
);
if
(
core
.
attacker
->
current
.
location
!=
LOCATION_MZONE
)
{
core
.
units
.
begin
()
->
step
=
-
1
;
return
FALSE
;
}
for
(
uint32
i
=
0
;
i
<
5
;
++
i
)
{
for
(
uint32
i
=
0
;
i
<
5
;
++
i
)
{
if
(
player
[
1
-
infos
.
turn_player
].
list_mzone
[
i
])
if
(
player
[
1
-
infos
.
turn_player
].
list_mzone
[
i
])
core
.
pre_field
[
i
]
=
player
[
1
-
infos
.
turn_player
].
list_mzone
[
i
]
->
fieldid
;
core
.
pre_field
[
i
]
=
player
[
1
-
infos
.
turn_player
].
list_mzone
[
i
]
->
fieldid
;
...
@@ -2540,14 +2552,6 @@ int32 field::process_battle_command(uint16 step) {
...
@@ -2540,14 +2552,6 @@ int32 field::process_battle_command(uint16 step) {
raise_single_event
(
core
.
attacker
,
EVENT_ATTACK_ANNOUNCE
,
0
,
0
,
0
,
infos
.
turn_player
,
0
);
raise_single_event
(
core
.
attacker
,
EVENT_ATTACK_ANNOUNCE
,
0
,
0
,
0
,
infos
.
turn_player
,
0
);
raise_event
(
core
.
attacker
,
EVENT_ATTACK_ANNOUNCE
,
0
,
0
,
0
,
infos
.
turn_player
,
0
);
raise_event
(
core
.
attacker
,
EVENT_ATTACK_ANNOUNCE
,
0
,
0
,
0
,
infos
.
turn_player
,
0
);
}
}
pduel
->
write_buffer8
(
MSG_ATTACK
);
pduel
->
write_buffer32
(
core
.
attacker
->
get_info_location
());
if
(
core
.
attack_target
)
{
raise_single_event
(
core
.
attack_target
,
EVENT_BE_BATTLE_TARGET
,
0
,
0
,
0
,
1
-
infos
.
turn_player
,
0
);
raise_event
(
core
.
attack_target
,
EVENT_BE_BATTLE_TARGET
,
0
,
0
,
0
,
1
-
infos
.
turn_player
,
0
);
pduel
->
write_buffer32
(
core
.
attack_target
->
get_info_location
());
}
else
pduel
->
write_buffer32
(
0
);
core
.
units
.
begin
()
->
arg2
=
(
core
.
attacker
->
current
.
controler
<<
16
)
+
core
.
attacker
->
fieldid
;
core
.
units
.
begin
()
->
arg2
=
(
core
.
attacker
->
current
.
controler
<<
16
)
+
core
.
attacker
->
fieldid
;
process_single_event
();
process_single_event
();
process_instant_event
();
process_instant_event
();
...
...
script/c30757396.lua
View file @
b5972974
...
@@ -24,6 +24,7 @@ function c30757396.initial_effect(c)
...
@@ -24,6 +24,7 @@ function c30757396.initial_effect(c)
e2
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e2
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e2
:
SetCode
(
EVENT_SSET
)
e2
:
SetCode
(
EVENT_SSET
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCondition
(
c30757396
.
damcon2
)
e2
:
SetTarget
(
c30757396
.
damtg2
)
e2
:
SetTarget
(
c30757396
.
damtg2
)
e2
:
SetOperation
(
c30757396
.
damop2
)
e2
:
SetOperation
(
c30757396
.
damop2
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
...
@@ -42,6 +43,9 @@ function c30757396.damop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -42,6 +43,9 @@ function c30757396.damop(e,tp,eg,ep,ev,re,r,rp)
local
ct
=
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_ONFIELD
)
local
ct
=
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_ONFIELD
)
Duel
.
Damage
(
p
,
ct
*
300
,
REASON_EFFECT
)
Duel
.
Damage
(
p
,
ct
*
300
,
REASON_EFFECT
)
end
end
function
c30757396
.
damcon2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
rp
~=
tp
end
function
c30757396
.
damtg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c30757396
.
damtg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
true
end
Duel
.
SetTargetPlayer
(
1
-
tp
)
Duel
.
SetTargetPlayer
(
1
-
tp
)
...
...
script/c58601383.lua
View file @
b5972974
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
function
c58601383
.
initial_effect
(
c
)
function
c58601383
.
initial_effect
(
c
)
--fusion material
--fusion material
c
:
EnableReviveLimit
()
c
:
EnableReviveLimit
()
aux
.
AddFusionProcCodeFun
(
c
,
97204936
,
aux
.
FilterBoolFunction
(
Card
.
IsType
,
TYPE_SYNCHRO
)
,
1
,
true
,
true
)
aux
.
AddFusionProcCodeFun
(
c
,
97204936
,
c58601383
.
ffilter
,
1
,
true
,
true
)
--cannot be target
--cannot be target
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
@@ -22,6 +22,9 @@ function c58601383.initial_effect(c)
...
@@ -22,6 +22,9 @@ function c58601383.initial_effect(c)
end
end
c58601383
.
material_count
=
1
c58601383
.
material_count
=
1
c58601383
.
material
=
{
97204936
}
c58601383
.
material
=
{
97204936
}
function
c58601383
.
ffilter
(
c
)
return
c
:
IsType
(
TYPE_SYNCHRO
)
and
not
c
:
IsType
(
TYPE_EFFECT
)
end
function
c58601383
.
efilter
(
e
,
re
)
function
c58601383
.
efilter
(
e
,
re
)
return
re
:
GetOwner
():
IsType
(
TYPE_EFFECT
)
return
re
:
GetOwner
():
IsType
(
TYPE_EFFECT
)
end
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