Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro
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
REIKAI
ygopro
Commits
ea816d87
Commit
ea816d87
authored
May 09, 2015
by
salix5
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1322 from DailyShana/patch-1
fix
parents
ed3025e7
23f589bc
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
39 additions
and
30 deletions
+39
-30
script/c14469229.lua
script/c14469229.lua
+1
-1
script/c19019586.lua
script/c19019586.lua
+5
-2
script/c22227683.lua
script/c22227683.lua
+5
-2
script/c39272762.lua
script/c39272762.lua
+10
-10
script/c54366836.lua
script/c54366836.lua
+6
-3
script/c63035430.lua
script/c63035430.lua
+1
-1
script/c7953868.lua
script/c7953868.lua
+11
-11
No files found.
script/c14469229.lua
View file @
ea816d87
...
...
@@ -19,7 +19,7 @@ function c14469229.initial_effect(c)
--double
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
14469229
,
0
))
e3
:
SetType
(
EFFECT_TYPE_
FIELD
+
EFFECT_TYPE_TRIGGER
_O
)
e3
:
SetType
(
EFFECT_TYPE_
QUICK
_O
)
e3
:
SetCode
(
EVENT_PRE_DAMAGE_CALCULATE
)
e3
:
SetRange
(
LOCATION_MZONE
+
LOCATION_HAND
)
e3
:
SetCost
(
c14469229
.
cost
)
...
...
script/c19019586.lua
View file @
ea816d87
...
...
@@ -13,8 +13,9 @@ function c19019586.initial_effect(c)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
19019586
,
1
))
e2
:
SetCategory
(
CATEGORY_ATKCHANGE
)
e2
:
SetType
(
EFFECT_TYPE_
TRIGGER_O
+
EFFECT_TYPE_SINGLE
)
e2
:
SetType
(
EFFECT_TYPE_
QUICK_O
)
e2
:
SetCode
(
EVENT_PRE_DAMAGE_CALCULATE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCost
(
c19019586
.
defcost
)
e2
:
SetOperation
(
c19019586
.
defop
)
c
:
RegisterEffect
(
e2
)
...
...
@@ -33,10 +34,12 @@ function c19019586.cfilter(c)
return
c
:
IsType
(
TYPE_NORMAL
)
and
c
:
IsAbleToGraveAsCost
()
end
function
c19019586
.
defcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c19019586
.
cfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
e
:
GetHandler
():
GetFlagEffect
(
19019586
)
==
0
and
Duel
.
IsExistingMatchingCard
(
c19019586
.
cfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c19019586
.
cfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
)
Duel
.
SendtoGrave
(
g
,
REASON_COST
)
e
:
GetHandler
():
RegisterFlagEffect
(
19019586
,
RESET_PHASE
+
RESET_DAMAGE_CAL
,
0
,
1
)
end
function
c19019586
.
defop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
...
...
script/c22227683.lua
View file @
ea816d87
...
...
@@ -2,8 +2,9 @@
function
c22227683
.
initial_effect
(
c
)
--atk/def up
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_
SINGLE
+
EFFECT_TYPE_TRIGGER
_O
)
e1
:
SetType
(
EFFECT_TYPE_
QUICK
_O
)
e1
:
SetCode
(
EVENT_PRE_DAMAGE_CALCULATE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
c22227683
.
condition
)
e1
:
SetTarget
(
c22227683
.
target
)
e1
:
SetOperation
(
c22227683
.
operation
)
...
...
@@ -25,7 +26,9 @@ function c22227683.tgfilter(c)
return
c
:
IsSetCard
(
0xab
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
not
c
:
IsCode
(
22227683
)
and
c
:
IsAbleToGrave
()
end
function
c22227683
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c22227683
.
tgfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
e
:
GetHandler
():
GetFlagEffect
(
22227683
)
==
0
and
Duel
.
IsExistingMatchingCard
(
c22227683
.
tgfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
e
:
GetHandler
():
RegisterFlagEffect
(
22227683
,
RESET_CHAIN
,
0
,
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
function
c22227683
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
script/c39272762.lua
View file @
ea816d87
...
...
@@ -18,16 +18,16 @@ function c39272762.initial_effect(c)
e2
:
SetLabelObject
(
e1
)
c
:
RegisterEffect
(
e2
)
--attack up
local
e
1
=
Effect
.
CreateEffect
(
c
)
e
1
:
SetCategory
(
CATEGORY_ATKCHANGE
)
e
1
:
SetDescription
(
aux
.
Stringid
(
39272762
,
1
))
e
1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e
1
:
SetCountLimit
(
1
)
e
1
:
SetRange
(
LOCATION_MZONE
)
e
1
:
SetCost
(
c39272762
.
atcost
)
e
1
:
SetTarget
(
c39272762
.
attg
)
e
1
:
SetOperation
(
c39272762
.
atop
)
c
:
RegisterEffect
(
e
1
)
local
e
3
=
Effect
.
CreateEffect
(
c
)
e
3
:
SetCategory
(
CATEGORY_ATKCHANGE
)
e
3
:
SetDescription
(
aux
.
Stringid
(
39272762
,
1
))
e
3
:
SetType
(
EFFECT_TYPE_IGNITION
)
e
3
:
SetCountLimit
(
1
)
e
3
:
SetRange
(
LOCATION_MZONE
)
e
3
:
SetCost
(
c39272762
.
atcost
)
e
3
:
SetTarget
(
c39272762
.
attg
)
e
3
:
SetOperation
(
c39272762
.
atop
)
c
:
RegisterEffect
(
e
3
)
end
function
c39272762
.
valcheck
(
e
,
c
)
local
g
=
c
:
GetMaterial
()
...
...
script/c54366836.lua
View file @
ea816d87
...
...
@@ -25,8 +25,9 @@ function c54366836.initial_effect(c)
--damage
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
54366836
,
0
))
e3
:
SetType
(
EFFECT_TYPE_
SINGLE
+
EFFECT_TYPE_TRIGGER
_O
)
e3
:
SetType
(
EFFECT_TYPE_
QUICK
_O
)
e3
:
SetCode
(
EVENT_PRE_DAMAGE_CALCULATE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetCost
(
c54366836
.
damcost2
)
e3
:
SetOperation
(
c54366836
.
damop2
)
c
:
RegisterEffect
(
e3
)
...
...
@@ -47,8 +48,10 @@ function c54366836.damop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Damage
(
p
,
d
,
REASON_EFFECT
)
end
function
c54366836
.
damcost2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_COST
)
end
e
:
GetHandler
():
RemoveOverlayCard
(
tp
,
1
,
1
,
REASON_COST
)
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
c
:
GetFlagEffect
(
54366836
)
==
0
and
c
:
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_COST
)
end
c
:
RemoveOverlayCard
(
tp
,
1
,
1
,
REASON_COST
)
c
:
RegisterFlagEffect
(
54366836
,
RESET_CHAIN
,
0
,
1
)
end
function
c54366836
.
damop2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
...
...
script/c63035430.lua
View file @
ea816d87
--摩天楼
-スカイスクレイパー
--摩天楼
-スカイスクレイパー-
function
c63035430
.
initial_effect
(
c
)
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
...
...
script/c7953868.lua
View file @
ea816d87
...
...
@@ -13,17 +13,17 @@ function c7953868.initial_effect(c)
e2
:
SetCode
(
EVENT_FLIP_SUMMON_SUCCESS
)
c
:
RegisterEffect
(
e2
)
--special summon
local
e
1
=
Effect
.
CreateEffect
(
c
)
e
1
:
SetDescription
(
aux
.
Stringid
(
7953868
,
1
))
e
1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e
1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e
1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e
1
:
SetCountLimit
(
1
)
e
1
:
SetRange
(
LOCATION_MZONE
)
e
1
:
SetCost
(
c7953868
.
spcost
)
e
1
:
SetTarget
(
c7953868
.
sptg
)
e
1
:
SetOperation
(
c7953868
.
spop
)
c
:
RegisterEffect
(
e
1
)
local
e
3
=
Effect
.
CreateEffect
(
c
)
e
3
:
SetDescription
(
aux
.
Stringid
(
7953868
,
1
))
e
3
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e
3
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e
3
:
SetType
(
EFFECT_TYPE_IGNITION
)
e
3
:
SetCountLimit
(
1
)
e
3
:
SetRange
(
LOCATION_MZONE
)
e
3
:
SetCost
(
c7953868
.
spcost
)
e
3
:
SetTarget
(
c7953868
.
sptg
)
e
3
:
SetOperation
(
c7953868
.
spop
)
c
:
RegisterEffect
(
e
3
)
end
function
c7953868
.
potg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAttackPos
()
end
...
...
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