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
cfba415a
Commit
cfba415a
authored
Oct 23, 2014
by
Fluorohydride
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #931 from salix5/patch-mid
fix: midrash (10/15)
parents
1c42c536
d3b9d355
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
85 additions
and
13 deletions
+85
-13
script/c43434803.lua
script/c43434803.lua
+1
-1
script/c94977269.lua
script/c94977269.lua
+84
-12
No files found.
script/c43434803.lua
View file @
cfba415a
...
@@ -28,7 +28,7 @@ function c43434803.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -28,7 +28,7 @@ function c43434803.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local
sc
=
sg
:
GetFirst
()
local
sc
=
sg
:
GetFirst
()
local
oc
=
og
:
GetFirst
()
local
oc
=
og
:
GetFirst
()
local
g
=
Group
.
FromCards
(
sc
,
oc
)
local
g
=
Group
.
FromCards
(
sc
,
oc
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
g
,
2
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
g
,
2
,
PLAYER_ALL
,
0
)
e
:
SetLabelObject
(
sc
)
e
:
SetLabelObject
(
sc
)
end
end
function
c43434803
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c43434803
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
script/c94977269.lua
View file @
cfba415a
...
@@ -36,21 +36,33 @@ function c94977269.initial_effect(c)
...
@@ -36,21 +36,33 @@ function c94977269.initial_effect(c)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
local
e5
=
Effect
.
CreateEffect
(
c
)
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e5
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e5
:
SetCode
(
EVENT_SPSUMMON
_SUCCESS
)
e5
:
SetCode
(
EVENT_SPSUMMON
)
e5
:
SetRange
(
LOCATION_MZONE
)
e5
:
SetRange
(
LOCATION_MZONE
)
e5
:
SetOperation
(
c94977269
.
checkop
)
e5
:
SetOperation
(
c94977269
.
checkop
1
)
c
:
RegisterEffect
(
e5
)
c
:
RegisterEffect
(
e5
)
--tohand
local
e6
=
Effect
.
CreateEffect
(
c
)
local
e6
=
Effect
.
CreateEffect
(
c
)
e6
:
SetDescription
(
aux
.
Stringid
(
94977269
,
0
))
e6
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e6
:
SetCategory
(
CATEGORY_TOHAND
)
e6
:
SetCode
(
EVENT_CHAINING
)
e6
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e6
:
SetRange
(
LOCATION_MZONE
)
e6
:
SetCode
(
EVENT_TO_GRAVE
)
e6
:
SetOperation
(
c94977269
.
checkop2
)
e6
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_DELAY
)
e6
:
SetCondition
(
c94977269
.
thcon
)
e6
:
SetTarget
(
c94977269
.
thtg
)
e6
:
SetOperation
(
c94977269
.
thop
)
c
:
RegisterEffect
(
e6
)
c
:
RegisterEffect
(
e6
)
local
e7
=
Effect
.
CreateEffect
(
c
)
e7
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e7
:
SetCode
(
EVENT_CHAIN_SOLVING
)
e7
:
SetRange
(
LOCATION_MZONE
)
e7
:
SetOperation
(
c94977269
.
checkop3
)
c
:
RegisterEffect
(
e7
)
--tohand
local
e8
=
Effect
.
CreateEffect
(
c
)
e8
:
SetDescription
(
aux
.
Stringid
(
94977269
,
0
))
e8
:
SetCategory
(
CATEGORY_TOHAND
)
e8
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e8
:
SetCode
(
EVENT_TO_GRAVE
)
e8
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_DELAY
)
e8
:
SetCondition
(
c94977269
.
thcon
)
e8
:
SetTarget
(
c94977269
.
thtg
)
e8
:
SetOperation
(
c94977269
.
thop
)
c
:
RegisterEffect
(
e8
)
end
end
function
c94977269
.
ffilter1
(
c
)
function
c94977269
.
ffilter1
(
c
)
return
c
:
IsSetCard
(
0x9d
)
return
c
:
IsSetCard
(
0x9d
)
...
@@ -166,7 +178,7 @@ end
...
@@ -166,7 +178,7 @@ end
function
c94977269
.
spval
(
e
,
se
,
sp
)
function
c94977269
.
spval
(
e
,
se
,
sp
)
return
1
-
e
:
GetHandler
():
GetFlagEffect
(
94977269
+
sp
)
return
1
-
e
:
GetHandler
():
GetFlagEffect
(
94977269
+
sp
)
end
end
function
c94977269
.
checkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c94977269
.
checkop
1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
eg
:
IsContains
(
c
)
then
return
end
if
eg
:
IsContains
(
c
)
then
return
end
local
p1
=
false
local
p1
=
false
...
@@ -179,6 +191,66 @@ function c94977269.checkop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -179,6 +191,66 @@ function c94977269.checkop(e,tp,eg,ep,ev,re,r,rp)
if
p1
then
c
:
RegisterFlagEffect
(
94977269
,
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
if
p1
then
c
:
RegisterFlagEffect
(
94977269
,
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
if
p2
then
c
:
RegisterFlagEffect
(
94977270
,
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
if
p2
then
c
:
RegisterFlagEffect
(
94977270
,
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
end
end
function
c94977269
.
checkop2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ex
,
tg
,
ct
,
sp
=
Duel
.
GetOperationInfo
(
ev
,
CATEGORY_SPECIAL_SUMMON
)
local
c
=
e
:
GetHandler
()
local
p
=
0
if
ex
then
if
sp
==
PLAYER_ALL
then
c
:
RegisterFlagEffect
(
94977269
,
RESET_EVENT
+
0x1fe0000
+
RESET_CHAIN
,
0
,
1
)
c
:
RegisterFlagEffect
(
94977270
,
RESET_EVENT
+
0x1fe0000
+
RESET_CHAIN
,
0
,
1
)
p
=
PLAYER_ALL
else
c
:
RegisterFlagEffect
(
94977269
+
rp
,
RESET_EVENT
+
0x1fe0000
+
RESET_CHAIN
,
0
,
1
)
p
=
rp
end
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetCode
(
EVENT_CHAIN_ACTIVATING
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetLabel
(
p
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_CHAIN
)
e1
:
SetOperation
(
c94977269
.
rst
)
c
:
RegisterEffect
(
e1
)
end
end
function
c94977269
.
rst
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
p
=
e
:
GetLabel
()
if
p
==
PLAYER_ALL
then
c
:
ResetFlagEffect
(
94977269
)
c
:
ResetFlagEffect
(
94977270
)
else
c
:
ResetFlagEffect
(
94977269
+
p
)
end
e
:
Reset
()
end
function
c94977269
.
checkop3
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
ex
,
tg
,
ct
,
sp
=
Duel
.
GetOperationInfo
(
ev
,
CATEGORY_SPECIAL_SUMMON
)
if
ex
then
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetCode
(
EVENT_CHAIN_SOLVED
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_CHAIN
)
e1
:
SetOperation
(
c94977269
.
checkop4
)
c
:
RegisterEffect
(
e1
)
end
end
function
c94977269
.
checkop4
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ex
,
tg
,
ct
,
sp
=
Duel
.
GetOperationInfo
(
ev
,
CATEGORY_SPECIAL_SUMMON
)
local
c
=
e
:
GetHandler
()
if
sp
==
PLAYER_ALL
then
c
:
RegisterFlagEffect
(
94977269
,
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
c
:
RegisterFlagEffect
(
94977270
,
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
else
c
:
RegisterFlagEffect
(
94977269
+
rp
,
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
e
:
Reset
()
end
function
c94977269
.
indval
(
e
,
re
,
tp
)
function
c94977269
.
indval
(
e
,
re
,
tp
)
return
tp
~=
e
:
GetHandlerPlayer
()
return
tp
~=
e
:
GetHandlerPlayer
()
end
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