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
944665f1
Commit
944665f1
authored
Apr 26, 2015
by
salix5
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
counter permit
parent
78f31ac3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
6 deletions
+5
-6
ocgcore/libcard.cpp
ocgcore/libcard.cpp
+4
-5
script/c10239627.lua
script/c10239627.lua
+1
-1
No files found.
ocgcore/libcard.cpp
View file @
944665f1
...
...
@@ -1723,14 +1723,13 @@ 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
)
uint32 prange;
if(lua_gettop(L) > 2)
prange = lua_tointeger(L, 3);
else 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;
...
...
script/c10239627.lua
View file @
944665f1
--マジカル・アブダクター
function
c10239627
.
initial_effect
(
c
)
c
:
EnableCounterPermit
(
0x3001
,
LOCATION_PZONE
)
c
:
EnableCounterPermit
(
0x3001
,
LOCATION_PZONE
+
LOCATION_MZONE
)
--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