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
20562d3a
Commit
20562d3a
authored
Jun 24, 2012
by
argon.sun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
514f88bc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
18 deletions
+6
-18
ocgcore/processor.cpp
ocgcore/processor.cpp
+0
-1
script/c31053337.lua
script/c31053337.lua
+6
-17
No files found.
ocgcore/processor.cpp
View file @
20562d3a
...
@@ -2652,7 +2652,6 @@ int32 field::process_battle_command(uint16 step) {
...
@@ -2652,7 +2652,6 @@ int32 field::process_battle_command(uint16 step) {
return
FALSE
;
return
FALSE
;
}
}
case
7
:
{
case
7
:
{
core
.
chain_attack
=
0
;
core
.
attack_cancelable
=
TRUE
;
core
.
attack_cancelable
=
TRUE
;
core
.
sub_attacker
=
0
;
core
.
sub_attacker
=
0
;
core
.
sub_attack_target
=
(
card
*
)
0xffffffff
;
core
.
sub_attack_target
=
(
card
*
)
0xffffffff
;
...
...
script/c31053337.lua
View file @
20562d3a
...
@@ -61,31 +61,20 @@ function c31053337.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -61,31 +61,20 @@ function c31053337.operation(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c31053337
.
indes
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c31053337
.
indes
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
a
=
Duel
.
GetAttacker
()
local
bc
=
c
:
GetBattleTarget
()
local
d
=
Duel
.
GetAttackTarget
()
if
bc
then
if
c
==
a
and
d
then
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_INDESTRUCTABLE_BATTLE
)
e1
:
SetCode
(
EFFECT_INDESTRUCTABLE_BATTLE
)
e1
:
SetReset
(
RESET_PHASE
+
RESET_DAMAGE_CAL
)
e1
:
SetReset
(
RESET_PHASE
+
RESET_DAMAGE_CAL
)
e1
:
SetValue
(
1
)
e1
:
SetValue
(
1
)
d
:
RegisterEffect
(
e1
)
bc
:
RegisterEffect
(
e1
)
elseif
c
==
d
then
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_INDESTRUCTABLE_BATTLE
)
e1
:
SetReset
(
RESET_PHASE
+
RESET_DAMAGE_CAL
)
e1
:
SetValue
(
1
)
d
:
RegisterEffect
(
e1
)
end
end
end
end
function
c31053337
.
operation2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c31053337
.
operation2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
a
=
Duel
.
GetAttacker
()
local
bc
=
c
:
GetBattleTarget
()
local
d
=
Duel
.
GetAttackTarget
()
if
bc
and
bc
:
IsRelateToBattle
()
then
if
c
==
a
and
d
and
d
:
IsRelateToBattle
()
then
Duel
.
SendtoHand
(
bc
,
nil
,
REASON_EFFECT
)
Duel
.
SendtoHand
(
d
,
nil
,
REASON_EFFECT
)
elseif
c
==
d
and
a
:
IsRelateToBattle
()
then
Duel
.
SendtoHand
(
a
,
nil
,
REASON_EFFECT
)
end
end
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