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
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
Commits
15ea279d
Commit
15ea279d
authored
Nov 16, 2016
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
5485784e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
29 deletions
+11
-29
c31755044.lua
c31755044.lua
+10
-29
constant.lua
constant.lua
+1
-0
No files found.
c31755044.lua
View file @
15ea279d
--十二獣ヴァイパー
--The "get effect" effect is temporary
function
c31755044
.
initial_effect
(
c
)
--material
local
e1
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -12,14 +11,15 @@ function c31755044.initial_effect(c)
e1
:
SetOperation
(
c31755044
.
matop
)
c
:
RegisterEffect
(
e1
)
--get effect
if
not
c31755044
.
global_check
then
c31755044
.
global_check
=
true
local
ge1
=
Effect
.
CreateEffect
(
c
)
ge1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
ge1
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
ge1
:
SetOperation
(
c31755044
.
checkop
)
Duel
.
RegisterEffect
(
ge1
,
0
)
end
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
31755044
,
1
))
e2
:
SetCategory
(
CATEGORY_REMOVE
)
e2
:
SetType
(
EFFECT_TYPE_XMATERIAL
+
EFFECT_TYPE_TRIGGER_F
)
e2
:
SetCode
(
EVENT_BATTLED
)
e2
:
SetCondition
(
c31755044
.
rmcon
)
e2
:
SetTarget
(
c31755044
.
rmtg
)
e2
:
SetOperation
(
c31755044
.
rmop
)
c
:
RegisterEffect
(
e2
)
end
function
c31755044
.
matfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsRace
(
RACE_BEASTWARRIOR
)
and
c
:
IsType
(
TYPE_XYZ
)
...
...
@@ -38,30 +38,11 @@ function c31755044.matop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Overlay
(
tc
,
Group
.
FromCards
(
c
))
end
end
function
c31755044
.
checkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
eg
:
GetFirst
()
while
tc
do
if
tc
:
IsType
(
TYPE_XYZ
)
and
tc
:
GetOriginalRace
()
==
RACE_BEASTWARRIOR
and
tc
:
GetFlagEffect
(
31755044
)
==
0
then
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetDescription
(
aux
.
Stringid
(
31755044
,
1
))
e1
:
SetCategory
(
CATEGORY_REMOVE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_F
)
e1
:
SetCode
(
EVENT_BATTLED
)
e1
:
SetCondition
(
c31755044
.
rmcon
)
e1
:
SetTarget
(
c31755044
.
rmtg
)
e1
:
SetOperation
(
c31755044
.
rmop
)
tc
:
RegisterEffect
(
e1
,
true
)
tc
:
RegisterFlagEffect
(
31755044
,
0
,
0
,
1
)
end
tc
=
eg
:
GetNext
()
end
end
function
c31755044
.
rmcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
bc
=
c
:
GetBattleTarget
()
e
:
SetLabelObject
(
bc
)
return
c
:
GetO
verlayGroup
():
IsExists
(
Card
.
IsCode
,
1
,
nil
,
31755044
)
return
c
:
GetO
riginalRace
()
==
RACE_BEASTWARRIOR
and
bc
and
bc
:
IsStatus
(
STATUS_OPPO_BATTLE
)
and
bc
:
IsRelateToBattle
()
end
function
c31755044
.
rmtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
constant.lua
View file @
15ea279d
...
...
@@ -234,6 +234,7 @@ EFFECT_TYPE_QUICK_O =0x0100 --诱发即时效果
EFFECT_TYPE_TRIGGER_F
=
0x0200
--诱发必发效果
EFFECT_TYPE_QUICK_F
=
0x0400
--诱发即时必发效果(熊猫龙等)
EFFECT_TYPE_CONTINUOUS
=
0x0800
--由事件觸發的輔助用效果/永續效果
EFFECT_TYPE_XMATERIAL
=
0x1000
--
--========== Flags ========== --效果的特殊性质
EFFECT_FLAG_INITIAL
=
0x0001
--可以发动的
EFFECT_FLAG_FUNC_VALUE
=
0x0002
--此效果的Value属性是函数
...
...
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