Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro
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
List
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
YGOPRO-520DIY
ygopro
Commits
bf517793
Commit
bf517793
authored
May 17, 2015
by
salix5
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
EVENT_BATTLE_DESTROYING
parent
4f70efe3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
10 deletions
+5
-10
ocgcore/processor.cpp
ocgcore/processor.cpp
+4
-9
script/c40737112.lua
script/c40737112.lua
+1
-1
No files found.
ocgcore/processor.cpp
View file @
bf517793
...
...
@@ -3702,14 +3702,7 @@ int32 field::process_battle_command(uint16 step) {
return
FALSE
;
}
case
30
:
{
//raise_single_event(core.attacker, 0, EVENT_BATTLE_END, 0, 0, PLAYER_NONE, 0, 0);
//if(core.attack_target)
// raise_single_event(core.attack_target, 0, EVENT_BATTLE_END, 0, 0, PLAYER_NONE, 0, 1);
//raise_event((card*)0, EVENT_BATTLE_END, 0, 0, PLAYER_NONE, 0, 0);
//process_single_event();
//process_instant_event();
if
(
!
core
.
effect_damage_step
||
(
core
.
effect_damage_step
!=
3
))
{
//add_process(PROCESSOR_POINT_EVENT, 0, 0, 0, FALSE, TRUE);
core
.
units
.
begin
()
->
arg1
=
1
;
}
else
{
break_effect
();
...
...
@@ -3756,13 +3749,15 @@ int32 field::process_battle_command(uint16 step) {
core
.
units
.
begin
()
->
ptarget
=
0
;
card_set
ing
;
card_set
ed
;
if
(
core
.
attacker
->
is_status
(
STATUS_BATTLE_DESTROYED
)
&&
(
core
.
attacker
->
current
.
reason
&
REASON_BATTLE
))
{
if
(
core
.
attacker
->
is_status
(
STATUS_BATTLE_DESTROYED
)
&&
!
((
core
.
attacker
->
current
.
reason
&
REASON_EFFECT
+
REASON_DESTROY
)
==
REASON_EFFECT
+
REASON_DESTROY
))
{
raise_single_event
(
core
.
attack_target
,
0
,
EVENT_BATTLE_DESTROYING
,
0
,
core
.
attacker
->
current
.
reason
,
core
.
attack_target
->
current
.
controler
,
0
,
1
);
raise_single_event
(
core
.
attacker
,
0
,
EVENT_BATTLE_DESTROYED
,
0
,
core
.
attacker
->
current
.
reason
,
core
.
attack_target
->
current
.
controler
,
0
,
0
);
ing
.
insert
(
core
.
attack_target
);
ed
.
insert
(
core
.
attacker
);
}
if
(
core
.
attack_target
&&
core
.
attack_target
->
is_status
(
STATUS_BATTLE_DESTROYED
)
&&
(
core
.
attack_target
->
current
.
reason
&
REASON_BATTLE
))
{
if
(
core
.
attack_target
&&
core
.
attack_target
->
is_status
(
STATUS_BATTLE_DESTROYED
)
&&
!
((
core
.
attack_target
->
current
.
reason
&
REASON_EFFECT
+
REASON_DESTROY
)
==
REASON_EFFECT
+
REASON_DESTROY
))
{
raise_single_event
(
core
.
attacker
,
0
,
EVENT_BATTLE_DESTROYING
,
0
,
core
.
attack_target
->
current
.
reason
,
core
.
attacker
->
current
.
controler
,
0
,
0
);
raise_single_event
(
core
.
attack_target
,
0
,
EVENT_BATTLE_DESTROYED
,
0
,
core
.
attack_target
->
current
.
reason
,
core
.
attacker
->
current
.
controler
,
0
,
1
);
ing
.
insert
(
core
.
attacker
);
...
...
script/c40737112.lua
View file @
bf517793
...
...
@@ -79,7 +79,7 @@ end
function
c40737112
.
rmop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
bc
=
e
:
GetLabelObject
()
if
bc
:
IsRelateToBattle
()
and
bc
:
IsAbleToRemove
()
then
Duel
.
Remove
(
bc
,
POS_FACEUP
,
REASON_EFFECT
+
REASON_BATTLE
)
Duel
.
Remove
(
bc
,
POS_FACEUP
,
REASON_EFFECT
)
end
end
function
c40737112
.
recon
(
e
)
...
...
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