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
482f96ce
Commit
482f96ce
authored
Aug 11, 2012
by
argon.sun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
af824bdf
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
3 deletions
+5
-3
ocgcore/libcard.cpp
ocgcore/libcard.cpp
+1
-0
ocgcore/libduel.cpp
ocgcore/libduel.cpp
+1
-0
script/c58131925.lua
script/c58131925.lua
+3
-3
No files found.
ocgcore/libcard.cpp
View file @
482f96ce
...
@@ -1857,4 +1857,5 @@ int32 scriptlib::card_reverse_in_deck(lua_State *L) {
...
@@ -1857,4 +1857,5 @@ int32 scriptlib::card_reverse_in_deck(lua_State *L) {
pduel
->
write_buffer8
(
0
);
pduel
->
write_buffer8
(
0
);
pduel
->
write_buffer32
(
pcard
->
data
.
code
|
0x80000000
);
pduel
->
write_buffer32
(
pcard
->
data
.
code
|
0x80000000
);
}
}
return
0
;
}
}
ocgcore/libduel.cpp
View file @
482f96ce
...
@@ -17,6 +17,7 @@ int32 scriptlib::duel_enable_global_flag(lua_State *L) {
...
@@ -17,6 +17,7 @@ int32 scriptlib::duel_enable_global_flag(lua_State *L) {
int32
flag
=
lua_tointeger
(
L
,
1
);
int32
flag
=
lua_tointeger
(
L
,
1
);
duel
*
pduel
=
interpreter
::
get_duel_info
(
L
);
duel
*
pduel
=
interpreter
::
get_duel_info
(
L
);
pduel
->
game_field
->
core
.
global_flag
|=
flag
;
pduel
->
game_field
->
core
.
global_flag
|=
flag
;
return
0
;
}
}
int32
scriptlib
::
duel_get_lp
(
lua_State
*
L
)
{
int32
scriptlib
::
duel_get_lp
(
lua_State
*
L
)
{
...
...
script/c58131925.lua
View file @
482f96ce
...
@@ -6,9 +6,9 @@ function c58131925.initial_effect(c)
...
@@ -6,9 +6,9 @@ function c58131925.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_ATKCHANGE
)
e1
:
SetCategory
(
CATEGORY_ATKCHANGE
)
e1
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e1
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetHintTiming
(
TIMING_DAMAGE_
CAL
)
e1
:
SetHintTiming
(
TIMING_DAMAGE_
STEP
)
e1
:
SetRange
(
LOCATION_HAND
)
e1
:
SetRange
(
LOCATION_HAND
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_DAMAGE_CAL
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_DAMAGE_STEP
)
e1
:
SetCondition
(
c58131925
.
condition
)
e1
:
SetCondition
(
c58131925
.
condition
)
e1
:
SetCost
(
c58131925
.
cost
)
e1
:
SetCost
(
c58131925
.
cost
)
e1
:
SetTarget
(
c58131925
.
target
)
e1
:
SetTarget
(
c58131925
.
target
)
...
@@ -17,7 +17,7 @@ function c58131925.initial_effect(c)
...
@@ -17,7 +17,7 @@ function c58131925.initial_effect(c)
end
end
function
c58131925
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c58131925
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
phase
=
Duel
.
GetCurrentPhase
()
local
phase
=
Duel
.
GetCurrentPhase
()
return
not
(
phase
==
PHASE_DAMAGE
or
phase
==
PHASE_DAMAGE_CAL
)
or
not
Duel
.
IsDamageCalculated
()
return
phase
~=
PHASE_DAMAGE
or
not
Duel
.
IsDamageCalculated
()
end
end
function
c58131925
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c58131925
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsDiscardable
()
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsDiscardable
()
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