Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-core
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-core
Commits
1b0fff0d
Commit
1b0fff0d
authored
Apr 07, 2017
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update TargetRange
parent
48300a55
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
effect.cpp
effect.cpp
+6
-6
No files found.
effect.cpp
View file @
1b0fff0d
...
@@ -434,18 +434,18 @@ int32 effect::is_target(card* pcard) {
...
@@ -434,18 +434,18 @@ int32 effect::is_target(card* pcard) {
return
FALSE
;
return
FALSE
;
if
(
is_flag
(
EFFECT_FLAG_ABSOLUTE_TARGET
))
{
if
(
is_flag
(
EFFECT_FLAG_ABSOLUTE_TARGET
))
{
if
(
pcard
->
current
.
controler
==
0
)
{
if
(
pcard
->
current
.
controler
==
0
)
{
if
(
!
(
s_range
&
pcard
->
current
.
location
))
if
(
!
pcard
->
current
.
is_location
(
s_range
))
return
FALSE
;
return
FALSE
;
}
else
{
}
else
{
if
(
!
(
o_range
&
pcard
->
current
.
location
))
if
(
!
pcard
->
current
.
is_location
(
o_range
))
return
FALSE
;
return
FALSE
;
}
}
}
else
{
}
else
{
if
(
pcard
->
current
.
controler
==
get_handler_player
())
{
if
(
pcard
->
current
.
controler
==
get_handler_player
())
{
if
(
!
(
s_range
&
pcard
->
current
.
location
))
if
(
!
pcard
->
current
.
is_location
(
s_range
))
return
FALSE
;
return
FALSE
;
}
else
{
}
else
{
if
(
!
(
o_range
&
pcard
->
current
.
location
))
if
(
!
pcard
->
current
.
is_location
(
o_range
))
return
FALSE
;
return
FALSE
;
}
}
}
}
...
@@ -464,9 +464,9 @@ int32 effect::is_target_player(uint8 playerid) {
...
@@ -464,9 +464,9 @@ int32 effect::is_target_player(uint8 playerid) {
return
FALSE
;
return
FALSE
;
uint8
self
=
get_handler_player
();
uint8
self
=
get_handler_player
();
if
(
is_flag
(
EFFECT_FLAG_ABSOLUTE_TARGET
))
{
if
(
is_flag
(
EFFECT_FLAG_ABSOLUTE_TARGET
))
{
if
(
s_range
&&
playerid
==
0
)
if
(
s_range
&&
playerid
==
0
)
return
TRUE
;
return
TRUE
;
if
(
o_range
&&
playerid
==
1
)
if
(
o_range
&&
playerid
==
1
)
return
TRUE
;
return
TRUE
;
}
else
{
}
else
{
if
(
s_range
&&
self
==
playerid
)
if
(
s_range
&&
self
==
playerid
)
...
...
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