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
a70d8ba4
Commit
a70d8ba4
authored
Nov 18, 2015
by
salix5
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
edit
parent
dab9cf6b
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
0 deletions
+7
-0
card.cpp
card.cpp
+5
-0
effect.h
effect.h
+1
-0
field.cpp
field.cpp
+1
-0
No files found.
card.cpp
View file @
a70d8ba4
...
...
@@ -1800,11 +1800,14 @@ int32 card::is_equipable(card* pcard) {
return
TRUE
;
return
FALSE
;
}
// check EFFECT_UNSUMMONABLE_CARD
int32
card
::
is_summonable
()
{
if
(
!
(
data
.
type
&
TYPE_MONSTER
))
return
FALSE
;
return
!
is_affected_by_effect
(
EFFECT_UNSUMMONABLE_CARD
);
}
// check if this can be summoned/sp_summoned by procedure peffect
// check the condition of peffect
int32
card
::
is_summonable
(
effect
*
peffect
)
{
effect
*
oreason
=
pduel
->
game_field
->
core
.
reason_effect
;
uint8
op
=
pduel
->
game_field
->
core
.
reason_player
;
...
...
@@ -1989,6 +1992,8 @@ int32 card::is_can_be_flip_summoned(uint8 playerid) {
pduel
->
game_field
->
restore_lp_cost
();
return
TRUE
;
}
// check if this can be sp_summoned by EFFECT_SPSUMMON_PROC
// call filter_spsummon_procedure()
int32
card
::
is_special_summonable
(
uint8
playerid
,
uint32
summon_type
)
{
if
(
!
(
data
.
type
&
TYPE_MONSTER
))
return
FALSE
;
...
...
effect.h
View file @
a70d8ba4
...
...
@@ -401,6 +401,7 @@ inline effect_flag operator|(effect_flag flag1, effect_flag flag2)
#define EFFECT_UNSUMMONABLE_CARD 336
#define EFFECT_DISABLE_CHAIN_FIELD 337
#define EFFECT_DISCARD_COST_CHANGE 338
#define EFFECT_HAND_SYNCHRO 339
#define EVENT_STARTUP 1000
#define EVENT_FLIP 1001
...
...
field.cpp
View file @
a70d8ba4
...
...
@@ -2035,6 +2035,7 @@ int32 field::is_player_can_sset(uint8 playerid, card * pcard) {
}
return
TRUE
;
}
// check player-effect EFFECT_CANNOT_SPECIAL_SUMMON without target
int32
field
::
is_player_can_spsummon
(
uint8
playerid
)
{
effect_set
eset
;
filter_player_effect
(
playerid
,
EFFECT_CANNOT_SPECIAL_SUMMON
,
&
eset
);
...
...
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