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
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
nanahira
ygopro-core
Commits
2a99d562
Commit
2a99d562
authored
Nov 29, 2023
by
salix5
Committed by
GitHub
Nov 29, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: Magical Hats monster become spell/trap (#517)
parent
15a10933
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
effect.cpp
effect.cpp
+3
-1
No files found.
effect.cpp
View file @
2a99d562
...
...
@@ -136,7 +136,9 @@ int32 effect::is_available(int32 neglect_disabled) {
return
FALSE
;
if
(
!
phandler
->
get_status
(
STATUS_EFFECT_ENABLED
)
&&
!
is_flag
(
EFFECT_FLAG_IMMEDIATELY_APPLY
))
return
FALSE
;
if
((
phandler
->
current
.
location
&
LOCATION_ONFIELD
)
&&
!
phandler
->
is_position
(
POS_FACEUP
))
if
(
phandler
->
current
.
is_location
(
LOCATION_ONFIELD
)
&&
!
phandler
->
is_position
(
POS_FACEUP
))
return
FALSE
;
if
(
phandler
->
current
.
is_stzone
()
&&
(
phandler
->
data
.
type
&
(
TYPE_SPELL
|
TYPE_TRAP
))
&&
phandler
->
is_affected_by_effect
(
EFFECT_CHANGE_TYPE
))
return
FALSE
;
if
(
is_flag
(
EFFECT_FLAG_OWNER_RELATE
)
&&
is_can_be_forbidden
()
&&
powner
->
is_status
(
STATUS_FORBIDDEN
))
return
FALSE
;
...
...
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