Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-scripts
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-scripts
Commits
c22b5398
Commit
c22b5398
authored
May 21, 2020
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix union monster spell type check
parent
323467d7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
c22091647.lua
c22091647.lua
+1
-1
c55749927.lua
c55749927.lua
+1
-1
c58346901.lua
c58346901.lua
+1
-1
No files found.
c22091647.lua
View file @
c22b5398
...
@@ -39,7 +39,7 @@ function c22091647.initial_effect(c)
...
@@ -39,7 +39,7 @@ function c22091647.initial_effect(c)
end
end
function
c22091647
.
costfilter
(
c
)
function
c22091647
.
costfilter
(
c
)
return
(
c
:
IsLocation
(
LOCATION_GRAVE
)
or
c
:
IsFaceup
()
or
c
:
GetEquipTarget
())
return
(
c
:
IsLocation
(
LOCATION_GRAVE
)
or
c
:
IsFaceup
()
or
c
:
GetEquipTarget
())
and
c
:
GetType
()
&
(
TYPE_EQUIP
+
TYPE_SPELL
)
>
0
and
(
c
:
GetType
()
&
(
TYPE_EQUIP
+
TYPE_SPELL
))
==
TYPE_EQUIP
+
TYPE_SPELL
and
c
:
IsAbleToRemoveAsCost
()
and
c
:
IsAbleToRemoveAsCost
()
end
end
function
c22091647
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c22091647
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
c55749927.lua
View file @
c22b5398
...
@@ -12,7 +12,7 @@ function c55749927.initial_effect(c)
...
@@ -12,7 +12,7 @@ function c55749927.initial_effect(c)
end
end
function
c55749927
.
rmfilter
(
c
)
function
c55749927
.
rmfilter
(
c
)
return
(
c
:
IsLocation
(
LOCATION_GRAVE
)
or
c
:
IsFaceup
()
or
c
:
GetEquipTarget
())
return
(
c
:
IsLocation
(
LOCATION_GRAVE
)
or
c
:
IsFaceup
()
or
c
:
GetEquipTarget
())
and
c
:
GetType
()
&
(
TYPE_EQUIP
+
TYPE_SPELL
)
>
0
and
(
c
:
GetType
()
&
(
TYPE_EQUIP
+
TYPE_SPELL
))
==
TYPE_EQUIP
+
TYPE_SPELL
and
c
:
IsAbleToRemove
()
and
c
:
IsAbleToRemove
()
end
end
function
c55749927
.
desfilter
(
c
,
tp
,
g
)
function
c55749927
.
desfilter
(
c
,
tp
,
g
)
...
...
c58346901.lua
View file @
c22b5398
...
@@ -30,7 +30,7 @@ end
...
@@ -30,7 +30,7 @@ end
function
c58346901
.
cfilter
(
c
,
tp
)
function
c58346901
.
cfilter
(
c
,
tp
)
return
(
c
:
IsLocation
(
LOCATION_HAND
)
or
c
:
IsFaceup
())
return
(
c
:
IsLocation
(
LOCATION_HAND
)
or
c
:
IsFaceup
())
and
(
c
:
IsRace
(
RACE_WARRIOR
)
and
c
:
IsAttribute
(
ATTRIBUTE_FIRE
)
and
(
c
:
IsRace
(
RACE_WARRIOR
)
and
c
:
IsAttribute
(
ATTRIBUTE_FIRE
)
or
c
:
GetType
()
&
(
TYPE_EQUIP
+
TYPE_SPELL
)
>
0
)
or
(
c
:
GetType
()
&
(
TYPE_EQUIP
+
TYPE_SPELL
))
==
TYPE_EQUIP
+
TYPE_SPELL
)
and
c
:
IsAbleToGraveAsCost
()
and
Duel
.
GetMZoneCount
(
tp
,
c
)
>
0
and
c
:
IsAbleToGraveAsCost
()
and
Duel
.
GetMZoneCount
(
tp
,
c
)
>
0
end
end
function
c58346901
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c58346901
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
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