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
fe35e149
Commit
fe35e149
authored
Jun 05, 2016
by
DailyShana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
b736c8ef
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
13 additions
and
30 deletions
+13
-30
c15180041.lua
c15180041.lua
+1
-1
c16625614.lua
c16625614.lua
+5
-24
c18563744.lua
c18563744.lua
+2
-0
c39238953.lua
c39238953.lua
+3
-2
c41175645.lua
c41175645.lua
+1
-1
c80230510.lua
c80230510.lua
+1
-2
No files found.
c15180041.lua
View file @
fe35e149
...
...
@@ -11,7 +11,7 @@ function c15180041.initial_effect(c)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
EFFECT_SPSUMMON_PROC
)
e2
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
)
e2
:
SetProperty
(
EFFECT_FLAG_
CANNOT_DISABLE
+
EFFECT_FLAG_
UNCOPYABLE
)
e2
:
SetRange
(
LOCATION_HAND
)
e2
:
SetCondition
(
c15180041
.
spcon
)
e2
:
SetOperation
(
c15180041
.
spop
)
...
...
c16625614.lua
View file @
fe35e149
...
...
@@ -56,32 +56,15 @@ function c16625614.dbop(e,tp,eg,ep,ev,re,r,rp)
if
tc
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
id
,
0
,
0x11
,
0
,
0
,
1
,
RACE_FIEND
,
ATTRIBUTE_DARK
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
16625614
,
0
))
then
tc
:
ResetEffect
(
EFFECT_CANNOT_SPECIAL_SUMMON
,
RESET_CODE
)
--monster
local
e1
=
Effect
.
CreateEffect
(
tc
)
tc
:
AddMonsterAttribute
(
ATTRIBUTE_DARK
,
RACE_FIEND
,
1
,
0
,
0
)
Duel
.
SpecialSummonStep
(
tc
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_CHANGE_TYPE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetValue
(
TYPE_NORMAL
+
TYPE_MONSTER
)
e1
:
SetReset
(
RESET_EVENT
+
0x
47
c0000
)
e1
:
SetReset
(
RESET_EVENT
+
0x
1f
c0000
)
tc
:
RegisterEffect
(
e1
,
true
)
Duel
.
SpecialSummonStep
(
tc
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
--attributes
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EFFECT_CHANGE_RACE
)
e2
:
SetValue
(
RACE_FIEND
)
tc
:
RegisterEffect
(
e2
,
true
)
local
e3
=
e1
:
Clone
()
e3
:
SetCode
(
EFFECT_CHANGE_ATTRIBUTE
)
e3
:
SetValue
(
ATTRIBUTE_DARK
)
tc
:
RegisterEffect
(
e3
,
true
)
local
e4
=
e1
:
Clone
()
e4
:
SetCode
(
EFFECT_SET_BASE_ATTACK
)
e4
:
SetValue
(
0
)
tc
:
RegisterEffect
(
e4
,
true
)
local
e5
=
e1
:
Clone
()
e5
:
SetCode
(
EFFECT_SET_BASE_DEFENSE
)
e5
:
SetValue
(
0
)
tc
:
RegisterEffect
(
e5
,
true
)
local
e6
=
Effect
.
CreateEffect
(
tc
)
e6
:
SetType
(
EFFECT_TYPE_SINGLE
)
e6
:
SetCode
(
EFFECT_CANNOT_SPECIAL_SUMMON
)
...
...
@@ -98,9 +81,7 @@ function c16625614.dbop(e,tp,eg,ep,ev,re,r,rp)
--cannot be target
local
e8
=
Effect
.
CreateEffect
(
c
)
e8
:
SetType
(
EFFECT_TYPE_SINGLE
)
e8
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e8
:
SetCode
(
EFFECT_IGNORE_BATTLE_TARGET
)
e8
:
SetRange
(
LOCATION_MZONE
)
e8
:
SetReset
(
RESET_EVENT
+
0x47c0000
)
tc
:
RegisterEffect
(
e8
)
Duel
.
SpecialSummonComplete
()
...
...
@@ -112,7 +93,7 @@ function c16625614.dbop(e,tp,eg,ep,ev,re,r,rp)
end
function
c16625614
.
efilter
(
e
,
te
)
local
tc
=
te
:
GetHandler
()
return
tc
~=
e
:
GetHandler
()
and
not
tc
:
IsCode
(
94212438
)
return
not
tc
:
IsCode
(
94212438
)
end
function
c16625614
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
tp
~=
Duel
.
GetTurnPlayer
()
...
...
c18563744.lua
View file @
fe35e149
...
...
@@ -51,6 +51,8 @@ function c18563744.activate(e,tp,eg,ep,ev,re,r,rp)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetCode
(
EFFECT_IMMUNE_EFFECT
)
e3
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetValue
(
c18563744
.
efilter
)
e3
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
)
e3
:
SetOwnerPlayer
(
tp
)
...
...
c39238953.lua
View file @
fe35e149
...
...
@@ -2,6 +2,7 @@
function
c39238953
.
initial_effect
(
c
)
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCost
(
c39238953
.
cost
)
...
...
@@ -10,8 +11,8 @@ function c39238953.initial_effect(c)
c
:
RegisterEffect
(
e1
)
end
function
c39238953
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckLPCost
(
tp
,
2000
)
else
Duel
.
PayLPCost
(
tp
,
2000
)
end
if
chk
==
0
then
return
Duel
.
CheckLPCost
(
tp
,
2000
)
end
Duel
.
PayLPCost
(
tp
,
2000
)
end
function
c39238953
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToHand
,
tp
,
0
,
LOCATION_DECK
,
1
,
nil
)
...
...
c41175645.lua
View file @
fe35e149
...
...
@@ -11,7 +11,7 @@ function c41175645.initial_effect(c)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
EFFECT_SPSUMMON_PROC
)
e2
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
)
e2
:
SetProperty
(
EFFECT_FLAG_
CANNOT_DISABLE
+
EFFECT_FLAG_
UNCOPYABLE
)
e2
:
SetRange
(
LOCATION_HAND
)
e2
:
SetCondition
(
c41175645
.
spcon
)
e2
:
SetOperation
(
c41175645
.
spop
)
...
...
c80230510.lua
View file @
fe35e149
...
...
@@ -14,7 +14,6 @@ function c80230510.activate(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_SUMMON_PROC
)
e1
:
SetTargetRange
(
LOCATION_HAND
,
0
)
e1
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
)
e1
:
SetCondition
(
c80230510
.
otcon
)
e1
:
SetTarget
(
c80230510
.
ottg
)
e1
:
SetOperation
(
c80230510
.
otop
)
...
...
@@ -45,7 +44,7 @@ function c80230510.otcon(e,c)
end
function
c80230510
.
ottg
(
e
,
c
)
local
mi
,
ma
=
c
:
GetTributeRequirement
()
return
mi
==
2
or
ma
=
=
2
return
mi
<=
2
and
ma
>
=
2
end
function
c80230510
.
otop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
...
...
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