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
e1e9af3e
Commit
e1e9af3e
authored
Sep 02, 2020
by
mercury233
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://github.com/Fluorohydride/ygopro-core
parents
7a84ffdd
aba66bc2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
card.cpp
card.cpp
+1
-1
field.cpp
field.cpp
+2
-2
No files found.
card.cpp
View file @
e1e9af3e
...
@@ -3611,7 +3611,7 @@ int32 card::is_capable_be_battle_target(card* pcard) {
...
@@ -3611,7 +3611,7 @@ int32 card::is_capable_be_battle_target(card* pcard) {
return
FALSE
;
return
FALSE
;
if
(
pcard
->
is_affected_by_effect
(
EFFECT_CANNOT_SELECT_BATTLE_TARGET
,
this
))
if
(
pcard
->
is_affected_by_effect
(
EFFECT_CANNOT_SELECT_BATTLE_TARGET
,
this
))
return
FALSE
;
return
FALSE
;
if
(
is_affected_by_effect
(
EFFECT_IGNORE_BATTLE_TARGET
))
if
(
is_affected_by_effect
(
EFFECT_IGNORE_BATTLE_TARGET
,
pcard
))
return
FALSE
;
return
FALSE
;
return
TRUE
;
return
TRUE
;
}
}
...
...
field.cpp
View file @
e1e9af3e
...
@@ -2333,7 +2333,7 @@ int32 field::get_attack_target(card* pcard, card_vector* v, uint8 chain_attack,
...
@@ -2333,7 +2333,7 @@ int32 field::get_attack_target(card* pcard, card_vector* v, uint8 chain_attack,
continue
;
continue
;
if
(
pcard
->
announced_cards
.
findcard
(
atarget
)
>=
(
uint32
)
peffect
->
get_value
(
atarget
))
if
(
pcard
->
announced_cards
.
findcard
(
atarget
)
>=
(
uint32
)
peffect
->
get_value
(
atarget
))
continue
;
continue
;
if
(
atype
>=
2
&&
atarget
->
is_affected_by_effect
(
EFFECT_IGNORE_BATTLE_TARGET
))
if
(
atype
>=
2
&&
atarget
->
is_affected_by_effect
(
EFFECT_IGNORE_BATTLE_TARGET
,
pcard
))
continue
;
continue
;
if
(
select_target
&&
(
atype
==
2
||
atype
==
4
))
{
if
(
select_target
&&
(
atype
==
2
||
atype
==
4
))
{
if
(
atarget
->
is_affected_by_effect
(
EFFECT_CANNOT_BE_BATTLE_TARGET
,
pcard
))
if
(
atarget
->
is_affected_by_effect
(
EFFECT_CANNOT_BE_BATTLE_TARGET
,
pcard
))
...
@@ -2351,7 +2351,7 @@ int32 field::get_attack_target(card* pcard, card_vector* v, uint8 chain_attack,
...
@@ -2351,7 +2351,7 @@ int32 field::get_attack_target(card* pcard, card_vector* v, uint8 chain_attack,
for
(
auto
&
atarget
:
*
pv
)
{
for
(
auto
&
atarget
:
*
pv
)
{
if
(
!
atarget
)
if
(
!
atarget
)
continue
;
continue
;
if
(
atype
>=
2
&&
atarget
->
is_affected_by_effect
(
EFFECT_IGNORE_BATTLE_TARGET
))
if
(
atype
>=
2
&&
atarget
->
is_affected_by_effect
(
EFFECT_IGNORE_BATTLE_TARGET
,
pcard
))
continue
;
continue
;
mcount
++
;
mcount
++
;
if
(
chain_attack
&&
core
.
chain_attack_target
&&
atarget
!=
core
.
chain_attack_target
)
if
(
chain_attack
&&
core
.
chain_attack_target
&&
atarget
!=
core
.
chain_attack_target
)
...
...
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