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
3e5c3d21
Commit
3e5c3d21
authored
Sep 29, 2015
by
salix5
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
1b7ef0dd
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
13 deletions
+21
-13
c23064604.lua
c23064604.lua
+4
-4
c6691855.lua
c6691855.lua
+17
-9
No files found.
c23064604.lua
View file @
3e5c3d21
...
@@ -80,11 +80,11 @@ function c23064604.tdop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -80,11 +80,11 @@ function c23064604.tdop(e,tp,eg,ep,ev,re,r,rp)
tg1
:
Merge
(
tg2
)
tg1
:
Merge
(
tg2
)
if
Duel
.
SendtoGrave
(
tg1
,
REASON_EFFECT
)
~=
0
and
tg1
:
IsExists
(
Card
.
IsLocation
,
2
,
nil
,
LOCATION_GRAVE
)
then
if
Duel
.
SendtoGrave
(
tg1
,
REASON_EFFECT
)
~=
0
and
tg1
:
IsExists
(
Card
.
IsLocation
,
2
,
nil
,
LOCATION_GRAVE
)
then
local
sg
=
nil
local
sg
=
nil
local
t
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsAbleToDeck
,
tp
,
0
,
LOCATION_HAND
,
nil
)
local
h
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsAbleToDeck
,
tp
,
0
,
LOCATION_HAND
,
nil
)
local
tg1
=
Duel
.
GetMatchingGroup
(
Card
.
IsAbleToDeck
,
tp
,
0
,
LOCATION_ONFIELD
+
LOCATION_GRAVE
,
nil
)
local
fg
=
Duel
.
GetMatchingGroup
(
Card
.
IsAbleToDeck
,
tp
,
0
,
LOCATION_ONFIELD
+
LOCATION_GRAVE
,
nil
)
if
tg
:
GetCount
()
>
0
and
(
tg1
:
GetCount
()
==
0
or
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
23064604
,
3
)))
then
if
hg
:
GetCount
()
>
0
and
(
fg
:
GetCount
()
==
0
or
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
23064604
,
3
)))
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
sg
=
t
g
:
RandomSelect
(
tp
,
1
)
sg
=
h
g
:
RandomSelect
(
tp
,
1
)
else
else
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
sg
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsAbleToDeck
,
tp
,
0
,
LOCATION_ONFIELD
+
LOCATION_GRAVE
,
1
,
1
,
nil
)
sg
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsAbleToDeck
,
tp
,
0
,
LOCATION_ONFIELD
+
LOCATION_GRAVE
,
1
,
1
,
nil
)
...
...
c6691855.lua
View file @
3e5c3d21
...
@@ -39,12 +39,13 @@ function c6691855.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -39,12 +39,13 @@ function c6691855.operation(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetValue
(
500
)
e1
:
SetValue
(
500
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--damage cal
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_
EQUIP
)
e2
:
SetType
(
EFFECT_TYPE_
FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetCode
(
E
FFECT_UPDATE_DEFENC
E
)
e2
:
SetCode
(
E
VENT_PRE_DAMAGE_CALCULAT
E
)
e2
:
Set
Condition
(
c6691855
.
defcon
)
e2
:
Set
Range
(
LOCATION_SZONE
)
e2
:
Set
Value
(
c6691855
.
defval
)
e2
:
Set
Condition
(
c6691855
.
damcon
)
e2
:
Set
Reset
(
RESET_EVENT
+
0x1fe0000
)
e2
:
Set
Operation
(
c6691855
.
damop
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
--Equip limit
--Equip limit
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
...
@@ -56,10 +57,17 @@ function c6691855.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -56,10 +57,17 @@ function c6691855.operation(e,tp,eg,ep,ev,re,r,rp)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
end
end
function
c6691855
.
d
ef
con
(
e
)
function
c6691855
.
d
am
con
(
e
)
local
eq
=
e
:
GetHandler
():
GetEquipTarget
()
local
eq
=
e
:
GetHandler
():
GetEquipTarget
()
return
Duel
.
GetCurrentPhase
()
==
PHASE_DAMAGE_CAL
and
eq
:
IsRelateToBattle
()
and
eq
:
IsDefencePos
()
return
eq
:
IsRelateToBattle
()
and
eq
:
IsDefencePos
()
end
end
function
c6691855
.
defval
(
e
,
c
)
function
c6691855
.
damop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
c
:
GetAttack
()
local
c
=
e
:
GetHandler
()
local
atk
=
c
:
GetEquipTarget
():
GetAttack
()
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_EQUIP
)
e2
:
SetCode
(
EFFECT_UPDATE_DEFENCE
)
e2
:
SetValue
(
atk
)
e2
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_DAMAGE_CAL
)
c
:
RegisterEffect
(
e2
)
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