Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-scripts-888
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
3
Merge Requests
3
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
MyCard
ygopro-scripts-888
Commits
c7dc6eb7
Commit
c7dc6eb7
authored
May 16, 2021
by
Chrono-Genex
Committed by
GitHub
May 16, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add Card.GetAttributeInGrave, Card.GetRaceInGrave (#1639)
parent
7b0dbdb8
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
10 deletions
+11
-10
c12644061.lua
c12644061.lua
+4
-2
c4064256.lua
c4064256.lua
+3
-2
c5288597.lua
c5288597.lua
+2
-6
constant.lua
constant.lua
+2
-0
No files found.
c12644061.lua
View file @
c7dc6eb7
...
@@ -44,14 +44,16 @@ function c12644061.initial_effect(c)
...
@@ -44,14 +44,16 @@ function c12644061.initial_effect(c)
e4
:
SetCost
(
c12644061
.
damcost
)
e4
:
SetCost
(
c12644061
.
damcost
)
e4
:
SetOperation
(
c12644061
.
damop
)
e4
:
SetOperation
(
c12644061
.
damop
)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
--
12644061 chk
--
local
e5
=
Effect
.
CreateEffect
(
c
)
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetType
(
EFFECT_TYPE_FIELD
)
e5
:
SetType
(
EFFECT_TYPE_FIELD
)
e5
:
SetCode
(
12644061
)
e5
:
SetCode
(
EFFECT_CHANGE_GRAVE_ATTRIBUTE
)
e5
:
SetRange
(
LOCATION_FZONE
)
e5
:
SetRange
(
LOCATION_FZONE
)
e5
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e5
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e5
:
SetTargetRange
(
1
,
1
)
e5
:
SetTargetRange
(
1
,
1
)
e5
:
SetCondition
(
c12644061
.
condition
)
e5
:
SetCondition
(
c12644061
.
condition
)
e5
:
SetValue
(
ATTRIBUTE_DARK
)
e5
:
SetTarget
(
aux
.
TargetBoolFunction
(
Card
.
IsSetCard
,
0x1034
))
c
:
RegisterEffect
(
e5
)
c
:
RegisterEffect
(
e5
)
end
end
function
c12644061
.
discon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c12644061
.
discon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c4064256.lua
View file @
c7dc6eb7
...
@@ -26,14 +26,15 @@ function c4064256.initial_effect(c)
...
@@ -26,14 +26,15 @@ function c4064256.initial_effect(c)
local
e4
=
e3
:
Clone
()
local
e4
=
e3
:
Clone
()
e4
:
SetCode
(
EFFECT_CANNOT_MSET
)
e4
:
SetCode
(
EFFECT_CANNOT_MSET
)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
--
4064256 chk
--
local
e5
=
Effect
.
CreateEffect
(
c
)
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetType
(
EFFECT_TYPE_FIELD
)
e5
:
SetType
(
EFFECT_TYPE_FIELD
)
e5
:
SetCode
(
4064256
)
e5
:
SetCode
(
EFFECT_CHANGE_GRAVE_RACE
)
e5
:
SetRange
(
LOCATION_FZONE
)
e5
:
SetRange
(
LOCATION_FZONE
)
e5
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e5
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e5
:
SetTargetRange
(
1
,
1
)
e5
:
SetTargetRange
(
1
,
1
)
e5
:
SetCondition
(
c4064256
.
condition
)
e5
:
SetCondition
(
c4064256
.
condition
)
e5
:
SetValue
(
RACE_ZOMBIE
)
c
:
RegisterEffect
(
e5
)
c
:
RegisterEffect
(
e5
)
end
end
function
c4064256
.
sumlimit
(
e
,
c
,
tp
,
sumtp
)
function
c4064256
.
sumlimit
(
e
,
c
,
tp
,
sumtp
)
...
...
c5288597.lua
View file @
c7dc6eb7
...
@@ -18,12 +18,8 @@ function c5288597.cost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -18,12 +18,8 @@ function c5288597.cost(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
function
c5288597
.
cfilter
(
c
,
e
,
tp
)
function
c5288597
.
cfilter
(
c
,
e
,
tp
)
local
lv
=
c
:
GetOriginalLevel
()
local
lv
=
c
:
GetOriginalLevel
()
local
rc
=
nil
local
rc
=
c
:
GetRaceInGrave
()
local
att
=
nil
local
att
=
c
:
GetAttributeInGrave
()
if
Duel
.
IsPlayerAffectedByEffect
(
tp
,
4064256
)
then
rc
=
RACE_ZOMBIE
else
rc
=
c
:
GetOriginalRace
()
end
if
Duel
.
IsPlayerAffectedByEffect
(
tp
,
12644061
)
and
c
:
IsSetCard
(
0x1034
)
then
att
=
ATTRIBUTE_DARK
else
att
=
c
:
GetOriginalAttribute
()
end
return
bit
.
band
(
c
:
GetOriginalType
(),
TYPE_MONSTER
)
~=
0
and
lv
>
0
and
c
:
IsFaceup
()
and
c
:
IsAbleToGraveAsCost
()
return
bit
.
band
(
c
:
GetOriginalType
(),
TYPE_MONSTER
)
~=
0
and
lv
>
0
and
c
:
IsFaceup
()
and
c
:
IsAbleToGraveAsCost
()
and
Duel
.
IsExistingMatchingCard
(
c5288597
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
lv
+
1
,
rc
,
att
,
e
,
tp
)
and
Duel
.
IsExistingMatchingCard
(
c5288597
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
lv
+
1
,
rc
,
att
,
e
,
tp
)
end
end
...
...
constant.lua
View file @
c7dc6eb7
...
@@ -565,6 +565,8 @@ EFFECT_MATERIAL_LIMIT =361 --
...
@@ -565,6 +565,8 @@ EFFECT_MATERIAL_LIMIT =361 --
EFFECT_SET_BATTLE_ATTACK
=
362
--战斗的伤害计算用设置的攻击力进行
EFFECT_SET_BATTLE_ATTACK
=
362
--战斗的伤害计算用设置的攻击力进行
EFFECT_SET_BATTLE_DEFENSE
=
363
--战斗的伤害计算用设置的守备力进行
EFFECT_SET_BATTLE_DEFENSE
=
363
--战斗的伤害计算用设置的守备力进行
EFFECT_OVERLAY_RITUAL_MATERIAL
=
364
--此卡的超量素材也能用于仪式召唤
EFFECT_OVERLAY_RITUAL_MATERIAL
=
364
--此卡的超量素材也能用于仪式召唤
EFFECT_CHANGE_GRAVE_ATTRIBUTE
=
365
--
EFFECT_CHANGE_GRAVE_RACE
=
366
--
--下面是诱发效果的诱发事件、时点 (如果是TYPE_SINGLE则自己发生以下事件后触发,如果TYPE_FIELD则场上任何卡发生以下事件都触发)
--下面是诱发效果的诱发事件、时点 (如果是TYPE_SINGLE则自己发生以下事件后触发,如果TYPE_FIELD则场上任何卡发生以下事件都触发)
EVENT_STARTUP
=
1000
--N/A
EVENT_STARTUP
=
1000
--N/A
...
...
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