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
75a71cad
Commit
75a71cad
authored
Nov 17, 2015
by
salix5
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
a3c1ec85
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
19 deletions
+29
-19
c17016362.lua
c17016362.lua
+12
-12
c67723438.lua
c67723438.lua
+17
-7
No files found.
c17016362.lua
View file @
75a71cad
...
...
@@ -48,7 +48,7 @@ function c17016362.mtcost(e,tp,eg,ep,ev,re,r,rp,chk)
e
:
GetHandler
():
RemoveOverlayCard
(
tp
,
1
,
1
,
REASON_COST
)
end
function
c17016362
.
mtfilter
(
c
)
return
c
:
IsPosition
(
POS_FACEUP_ATTACK
)
and
Duel
.
IsAbleToEnterBP
()
and
not
c
:
IsHasEffect
(
EFFECT_EXTRA_ATTACK
)
return
c
:
IsPosition
(
POS_FACEUP_ATTACK
)
and
not
c
:
IsHasEffect
(
EFFECT_EXTRA_ATTACK
)
end
function
c17016362
.
mttg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
local
turnp
=
Duel
.
GetTurnPlayer
()
...
...
@@ -71,17 +71,17 @@ function c17016362.mtop(e,tp,eg,ep,ev,re,r,rp)
tc
:
RegisterEffect
(
e1
)
tc
:
RegisterFlagEffect
(
17016362
,
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
,
0
,
1
,
fid
)
--destroy
local
e
1
=
Effect
.
CreateEffect
(
c
)
e
1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e
1
:
SetCode
(
EVENT_PHASE
+
PHASE_BATTLE
)
e
1
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e
1
:
SetCountLimit
(
1
)
e
1
:
SetLabel
(
fid
)
e
1
:
SetLabelObject
(
tc
)
e
1
:
SetCondition
(
c17016362
.
descon
)
e
1
:
SetOperation
(
c17016362
.
desop
)
e
1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e
1
,
tp
)
local
e
2
=
Effect
.
CreateEffect
(
c
)
e
2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e
2
:
SetCode
(
EVENT_PHASE
+
PHASE_BATTLE
)
e
2
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e
2
:
SetCountLimit
(
1
)
e
2
:
SetLabel
(
fid
)
e
2
:
SetLabelObject
(
tc
)
e
2
:
SetCondition
(
c17016362
.
descon
)
e
2
:
SetOperation
(
c17016362
.
desop
)
e
2
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e
2
,
tp
)
end
end
function
c17016362
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c67723438.lua
View file @
75a71cad
...
...
@@ -19,22 +19,32 @@ function c67723438.target(e,tp,eg,ep,ev,re,r,rp,chk)
end
function
c67723438
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
local
c
=
e
:
GetHandler
()
local
fid
=
c
:
GetFieldID
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c67723438
.
filter
,
tp
,
LOCATION_DECK
+
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
tc
=
g
:
GetFirst
()
if
tc
then
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
()
)
e1
:
SetDescription
(
aux
.
Stringid
(
67723438
,
0
)
)
tc
:
RegisterFlagEffect
(
67723438
,
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
,
0
,
1
,
fid
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e1
:
SetOperation
(
c67723438
.
rmop
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
)
e1
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e1
:
SetCountLimit
(
1
)
tc
:
RegisterEffect
(
e1
)
e1
:
SetLabel
(
fid
)
e1
:
SetLabelObject
(
tc
)
e1
:
SetCondition
(
c67723438
.
rmcon
)
e1
:
SetOperation
(
c67723438
.
rmop
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
end
function
c67723438
.
rmcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
e
:
GetLabelObject
()
return
tc
:
GetFlagEffectLabel
(
67723438
)
==
e
:
GetLabel
()
end
function
c67723438
.
rmop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Remove
(
e
:
GetHandler
(),
POS_FACEUP
,
REASON_EFFECT
)
local
tc
=
e
:
GetLabelObject
()
Duel
.
Remove
(
tc
,
POS_FACEUP
,
REASON_EFFECT
)
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