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
fb894d44
Commit
fb894d44
authored
Apr 26, 2015
by
DailyShana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
d589bd45
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
5 deletions
+10
-5
ocgcore/libcard.cpp
ocgcore/libcard.cpp
+9
-4
script/c10239627.lua
script/c10239627.lua
+1
-1
No files found.
ocgcore/libcard.cpp
View file @
fb894d44
...
...
@@ -1723,15 +1723,20 @@ int32 scriptlib::card_enable_counter_permit(lua_State *L) {
check_param_count
(
L
,
2
);
card
*
pcard
=
*
(
card
**
)
lua_touserdata
(
L
,
1
);
int32
countertype
=
lua_tointeger
(
L
,
2
);
uint16
prange
;
if
(
pcard
->
data
.
type
&
TYPE_MONSTER
)
prange
=
LOCATION_MZONE
;
else
prange
=
LOCATION_SZONE
|
LOCATION_FZONE
;
if
(
lua_gettop
(
L
)
>
2
)
{
prange
|=
lua_tointeger
(
L
,
3
);
}
effect
*
peffect
=
pcard
->
pduel
->
new_effect
();
peffect
->
owner
=
pcard
;
peffect
->
type
=
EFFECT_TYPE_SINGLE
;
peffect
->
code
=
EFFECT_COUNTER_PERMIT
|
countertype
;
peffect
->
flag
=
EFFECT_FLAG_SINGLE_RANGE
;
if
(
pcard
->
data
.
type
&
TYPE_MONSTER
)
peffect
->
range
=
LOCATION_MZONE
;
else
peffect
->
range
=
LOCATION_SZONE
|
LOCATION_FZONE
;
peffect
->
range
=
prange
;
pcard
->
add_effect
(
peffect
);
return
0
;
}
...
...
script/c10239627.lua
View file @
fb894d44
--マジカル・アブダクター
function
c10239627
.
initial_effect
(
c
)
c
:
EnableCounterPermit
(
0x3001
)
c
:
EnableCounterPermit
(
0x3001
,
LOCATION_PZONE
)
--pendulum summon
aux
.
AddPendulumProcedure
(
c
)
--Activate
...
...
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