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
b272fb13
Commit
b272fb13
authored
Oct 15, 2012
by
argon.sun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
380a8974
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
5 deletions
+6
-5
ocgcore/libduel.cpp
ocgcore/libduel.cpp
+1
-1
script/c34460239.lua
script/c34460239.lua
+1
-0
script/c49267971.lua
script/c49267971.lua
+4
-4
No files found.
ocgcore/libduel.cpp
View file @
b272fb13
...
...
@@ -1142,7 +1142,7 @@ int32 scriptlib::duel_change_battle_damage(lua_State *L) {
int32
check
=
TRUE
;
if
(
lua_gettop
(
L
)
>=
3
)
check
=
lua_toboolean
(
L
,
3
);
if
(
check
&&
dam
==
0
)
if
(
check
&&
pduel
->
game_field
->
core
.
battle_damage
[
playerid
]
==
0
)
return
0
;
pduel
->
game_field
->
core
.
battle_damage
[
playerid
]
=
dam
;
return
0
;
...
...
script/c34460239.lua
View file @
b272fb13
...
...
@@ -28,6 +28,7 @@ end
function
c34460239
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
and
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
>
0
then
Duel
.
BreakEffect
()
local
hc
=
Duel
.
GetFirstMatchingCard
(
c34460239
.
filter2
,
tp
,
LOCATION_DECK
,
0
,
nil
,
tc
:
GetCode
())
if
hc
then
Duel
.
SendtoHand
(
hc
,
nil
,
REASON_EFFECT
)
...
...
script/c49267971.lua
View file @
b272fb13
...
...
@@ -17,12 +17,12 @@ function c49267971.condition(e,tp,eg,ep,ev,re,r,rp)
end
function
c49267971
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
false
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
Card
.
Is
Faceup
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
and
Duel
.
IsExistingTarget
(
Card
.
Is
Faceup
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
Card
.
Is
Position
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
,
POS_FACEUP_DEFENCE
)
and
Duel
.
IsExistingTarget
(
Card
.
Is
Position
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
POS_FACEUP_ATTACK
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_OPPO
)
local
g1
=
Duel
.
SelectTarget
(
tp
,
Card
.
Is
Faceup
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
local
g1
=
Duel
.
SelectTarget
(
tp
,
Card
.
Is
Position
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
,
POS_FACEUP_DEFENCE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SELF
)
local
g2
=
Duel
.
SelectTarget
(
tp
,
Card
.
Is
Faceup
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
local
g2
=
Duel
.
SelectTarget
(
tp
,
Card
.
Is
Position
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
POS_FACEUP_ATTACK
)
e
:
SetLabelObject
(
g1
:
GetFirst
())
end
function
c49267971
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
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