Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-2pick
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-2pick
Commits
87d12997
Commit
87d12997
authored
Jun 03, 2015
by
Tianchenglipu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update c86489182.lua
parent
6ca5ec23
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
28 deletions
+33
-28
script/c86489182.lua
script/c86489182.lua
+33
-28
No files found.
script/c86489182.lua
View file @
87d12997
--始祖神鳥シムルグ
--始祖神鳥シムルグ
function
c86489182
.
initial_effect
(
c
)
function
c86489182
.
initial_effect
(
c
)
--normal monster
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetRange
(
LOCATION_HAND
)
e1
:
SetRange
(
LOCATION_HAND
)
e1
:
SetCode
(
EFFECT_
CHANGE
_TYPE
)
e1
:
SetCode
(
EFFECT_
ADD
_TYPE
)
e1
:
SetValue
(
TYPE_NORMAL
+
TYPE_MONSTER
)
e1
:
SetValue
(
TYPE_NORMAL
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--decrease tribute
local
e2
=
e1
:
Clone
()
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetCode
(
EFFECT_REMOVE_TYPE
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetValue
(
TYPE_EFFECT
)
e2
:
SetCode
(
EFFECT_DECREASE_TRIBUTE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetTargetRange
(
LOCATION_HAND
,
LOCATION_HAND
)
e2
:
SetTarget
(
aux
.
TargetBoolFunction
(
Card
.
IsAttribute
,
ATTRIBUTE_WIND
))
e2
:
SetValue
(
0x10001
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
local
e3
=
e2
:
Clone
()
--decrease tribute
e3
:
SetCode
(
EFFECT_DECREASE_TRIBUTE_SET
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetCode
(
EFFECT_DECREASE_TRIBUTE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetTargetRange
(
LOCATION_HAND
,
LOCATION_HAND
)
e3
:
SetTarget
(
aux
.
TargetBoolFunction
(
Card
.
IsAttribute
,
ATTRIBUTE_WIND
))
e3
:
SetValue
(
0x10001
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
--summon success
local
e4
=
e3
:
Clone
()
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetCode
(
EFFECT_DECREASE_TRIBUTE_SET
)
e4
:
SetDescription
(
aux
.
Stringid
(
86489182
,
0
))
e4
:
SetCategory
(
CATEGORY_TOHAND
)
e4
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_F
)
e4
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e4
:
SetCondition
(
c86489182
.
condition
)
e4
:
SetTarget
(
c86489182
.
target
)
e4
:
SetOperation
(
c86489182
.
operation
)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
--
tribute check
--
summon success
local
e5
=
Effect
.
CreateEffect
(
c
)
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetType
(
EFFECT_TYPE_SINGLE
)
e5
:
SetDescription
(
aux
.
Stringid
(
86489182
,
0
))
e5
:
SetCode
(
EFFECT_MATERIAL_CHECK
)
e5
:
SetCategory
(
CATEGORY_TOHAND
)
e5
:
SetValue
(
c86489182
.
valcheck
)
e5
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e5
:
SetLabelObject
(
e4
)
e5
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_F
)
e5
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e5
:
SetCondition
(
c86489182
.
condition
)
e5
:
SetTarget
(
c86489182
.
target
)
e5
:
SetOperation
(
c86489182
.
operation
)
c
:
RegisterEffect
(
e5
)
c
:
RegisterEffect
(
e5
)
--tribute check
local
e6
=
Effect
.
CreateEffect
(
c
)
e6
:
SetType
(
EFFECT_TYPE_SINGLE
)
e6
:
SetCode
(
EFFECT_MATERIAL_CHECK
)
e6
:
SetValue
(
c86489182
.
valcheck
)
e6
:
SetLabelObject
(
e5
)
c
:
RegisterEffect
(
e6
)
end
end
function
c86489182
.
valcheck
(
e
,
c
)
function
c86489182
.
valcheck
(
e
,
c
)
local
g
=
c
:
GetMaterial
()
local
g
=
c
:
GetMaterial
()
...
@@ -62,4 +67,4 @@ function c86489182.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -62,4 +67,4 @@ function c86489182.operation(e,tp,eg,ep,ev,re,r,rp)
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
end
end
end
end
\ No newline at end of file
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