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
c9c94856
Commit
c9c94856
authored
Mar 29, 2016
by
DailyShana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change
parent
df940d1d
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
34 additions
and
72 deletions
+34
-72
c31053337.lua
c31053337.lua
+7
-14
c65079854.lua
c65079854.lua
+9
-16
c81167171.lua
c81167171.lua
+10
-26
c8198620.lua
c8198620.lua
+8
-16
No files found.
c31053337.lua
View file @
c9c94856
...
@@ -20,10 +20,12 @@ function c31053337.initial_effect(c)
...
@@ -20,10 +20,12 @@ function c31053337.initial_effect(c)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
--indes
--indes
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetCode
(
E
VENT_DAMAGE_CALCULATING
)
e3
:
SetCode
(
E
FFECT_INDESTRUCTABLE_BATTLE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetOperation
(
c31053337
.
indes
)
e3
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e3
:
SetTarget
(
c31053337
.
indestg
)
e3
:
SetValue
(
1
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
--to hand2
--to hand2
local
e4
=
Effect
.
CreateEffect
(
c
)
local
e4
=
Effect
.
CreateEffect
(
c
)
...
@@ -59,17 +61,8 @@ function c31053337.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -59,17 +61,8 @@ function c31053337.operation(e,tp,eg,ep,ev,re,r,rp)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
end
end
function
c31053337
.
indes
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c31053337
.
indestg
(
e
,
c
)
local
c
=
e
:
GetHandler
()
return
c
==
e
:
GetHandler
():
GetBattleTarget
()
local
bc
=
c
:
GetBattleTarget
()
if
bc
then
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_INDESTRUCTABLE_BATTLE
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_DAMAGE_CAL
)
e1
:
SetValue
(
1
)
bc
:
RegisterEffect
(
e1
)
end
end
end
function
c31053337
.
operation2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c31053337
.
operation2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
...
...
c65079854.lua
View file @
c9c94856
...
@@ -27,14 +27,16 @@ function c65079854.initial_effect(c)
...
@@ -27,14 +27,16 @@ function c65079854.initial_effect(c)
e4
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e4
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e4
:
SetValue
(
c65079854
.
eqlimit
)
e4
:
SetValue
(
c65079854
.
eqlimit
)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
--
battle
--
indes
local
e5
=
Effect
.
CreateEffect
(
c
)
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e5
:
SetType
(
EFFECT_TYPE_FIELD
)
e5
:
SetCode
(
EFFECT_INDESTRUCTABLE_BATTLE
)
e5
:
SetRange
(
LOCATION_SZONE
)
e5
:
SetRange
(
LOCATION_SZONE
)
e5
:
Set
Code
(
EVENT_DAMAGE_CALCULATING
)
e5
:
Set
TargetRange
(
0
,
LOCATION_MZONE
)
e5
:
Set
Condition
(
c65079854
.
indescon
)
e5
:
Set
Target
(
c65079854
.
indestg
)
e5
:
Set
Operation
(
c65079854
.
indesop
)
e5
:
Set
Value
(
1
)
c
:
RegisterEffect
(
e5
)
c
:
RegisterEffect
(
e5
)
--battle
local
e6
=
Effect
.
CreateEffect
(
c
)
local
e6
=
Effect
.
CreateEffect
(
c
)
e6
:
SetDescription
(
aux
.
Stringid
(
65079854
,
0
))
e6
:
SetDescription
(
aux
.
Stringid
(
65079854
,
0
))
e6
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
e6
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
...
@@ -64,17 +66,8 @@ function c65079854.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -64,17 +66,8 @@ function c65079854.operation(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Equip
(
tp
,
c
,
tc
)
Duel
.
Equip
(
tp
,
c
,
tc
)
end
end
end
end
function
c65079854
.
indescon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c65079854
.
indestg
(
e
,
c
)
return
e
:
GetHandler
():
GetEquipTarget
():
GetBattleTarget
()
~=
nil
return
c
==
e
:
GetHandler
():
GetEquipTarget
():
GetBattleTarget
()
end
function
c65079854
.
indesop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
bc
=
e
:
GetHandler
():
GetEquipTarget
():
GetBattleTarget
()
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_INDESTRUCTABLE_BATTLE
)
e1
:
SetValue
(
1
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_DAMAGE_CAL
)
bc
:
RegisterEffect
(
e1
,
true
)
end
end
function
c65079854
.
adcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c65079854
.
adcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetAttacker
()
==
e
:
GetHandler
():
GetEquipTarget
()
and
Duel
.
GetAttackTarget
()
~=
nil
return
Duel
.
GetAttacker
()
==
e
:
GetHandler
():
GetEquipTarget
()
and
Duel
.
GetAttackTarget
()
~=
nil
...
...
c81167171.lua
View file @
c9c94856
...
@@ -42,32 +42,16 @@ function c81167171.condition(e,tp,eg,ep,ev,re,r,rp)
...
@@ -42,32 +42,16 @@ function c81167171.condition(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c81167171
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c81167171
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EVENT_DAMAGE_CALCULATING
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_DAMAGE_CAL
)
e1
:
SetOperation
(
c81167171
.
batop
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
function
c81167171
.
batop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
s
=
Duel
.
GetAttacker
()
local
o
=
Duel
.
GetAttackTarget
()
if
Duel
.
GetTurnPlayer
()
~=
tp
then
s
=
Duel
.
GetAttackTarget
()
o
=
Duel
.
GetAttacker
()
end
if
not
o
then
return
end
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_NO_BATTLE_DAMAGE
)
e1
:
SetCode
(
EFFECT_NO_BATTLE_DAMAGE
)
e1
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_DAMAGE_CAL
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_DAMAGE_CAL
)
o
:
RegisterEffect
(
e1
)
Duel
.
RegisterEffect
(
e1
,
tp
)
if
s
then
local
e2
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e2
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_INDESTRUCTABLE_BATTLE
)
e2
:
SetCode
(
EFFECT_INDESTRUCTABLE_BATTLE
)
e2
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e2
:
SetReset
(
RESET_PHASE
+
PHASE_DAMAGE_CAL
)
e2
:
SetValue
(
1
)
e2
:
SetValue
(
1
)
e2
:
SetReset
(
RESET_PHASE
+
PHASE_DAMAGE_CAL
)
s
:
RegisterEffect
(
e2
)
Duel
.
RegisterEffect
(
e2
,
tp
)
end
e
:
Reset
()
end
end
c8198620.lua
View file @
c9c94856
...
@@ -21,13 +21,14 @@ function c8198620.initial_effect(c)
...
@@ -21,13 +21,14 @@ function c8198620.initial_effect(c)
e2
:
SetTarget
(
c8198620
.
attg
)
e2
:
SetTarget
(
c8198620
.
attg
)
e2
:
SetOperation
(
c8198620
.
atop
)
e2
:
SetOperation
(
c8198620
.
atop
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
--
--
indes
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetCode
(
EFFECT_INDESTRUCTABLE_BATTLE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
Set
Code
(
EVENT_DAMAGE_CALCULATING
)
e3
:
Set
TargetRange
(
0
,
LOCATION_MZONE
)
e3
:
Set
Condition
(
c8198620
.
indescon
)
e3
:
Set
Target
(
c8198620
.
indestg
)
e3
:
Set
Operation
(
c8198620
.
indesop
)
e3
:
Set
Value
(
1
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
function
c8198620
.
splimit
(
e
,
se
,
sp
,
st
)
function
c8198620
.
splimit
(
e
,
se
,
sp
,
st
)
...
@@ -69,15 +70,6 @@ function c8198620.atop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -69,15 +70,6 @@ function c8198620.atop(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
end
end
function
c8198620
.
indescon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c8198620
.
indestg
(
e
,
c
)
return
e
:
GetHandler
():
GetBattleTarget
()
~=
nil
return
c
==
e
:
GetHandler
():
GetBattleTarget
()
end
function
c8198620
.
indesop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
bc
=
e
:
GetHandler
():
GetBattleTarget
()
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_INDESTRUCTABLE_BATTLE
)
e1
:
SetValue
(
1
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_DAMAGE_CAL
)
bc
:
RegisterEffect
(
e1
,
true
)
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