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
cc72b19f
Commit
cc72b19f
authored
May 20, 2016
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
bc9464a7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
24 deletions
+30
-24
c68406755.lua
c68406755.lua
+18
-10
c69058960.lua
c69058960.lua
+6
-7
c95442074.lua
c95442074.lua
+6
-7
No files found.
c68406755.lua
View file @
cc72b19f
...
@@ -26,21 +26,29 @@ function c68406755.initial_effect(c)
...
@@ -26,21 +26,29 @@ function c68406755.initial_effect(c)
e3
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e3
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e3
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e3
:
SetCondition
(
c68406755
.
con
)
e3
:
SetCondition
(
c68406755
.
ef
con
)
e3
:
SetValue
(
c68406755
.
val
)
e3
:
SetValue
(
c68406755
.
atk
val
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
local
e4
=
e3
:
Clone
()
local
e4
=
e3
:
Clone
()
e4
:
SetCode
(
EFFECT_UPDATE_DEFENCE
)
e4
:
SetCode
(
EFFECT_UPDATE_DEFENCE
)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
--
cannot select battle target
--
must be attacked
local
e5
=
Effect
.
CreateEffect
(
c
)
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetType
(
EFFECT_TYPE_FIELD
)
e5
:
SetType
(
EFFECT_TYPE_FIELD
)
e5
:
SetCode
(
EFFECT_MUST_ATTACK_MONSTER
)
e5
:
SetRange
(
LOCATION_MZONE
)
e5
:
SetRange
(
LOCATION_MZONE
)
e5
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e5
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e5
:
SetCode
(
EFFECT_CANNOT_SELECT_BATTLE_TARGET
)
e5
:
SetCondition
(
c68406755
.
efcon
)
e5
:
SetCondition
(
c68406755
.
con
)
e5
:
SetValue
(
c68406755
.
atlimit
)
c
:
RegisterEffect
(
e5
)
c
:
RegisterEffect
(
e5
)
local
e6
=
Effect
.
CreateEffect
(
c
)
e6
:
SetType
(
EFFECT_TYPE_FIELD
)
e6
:
SetCode
(
EFFECT_MUST_BE_ATTACKED
)
e6
:
SetRange
(
LOCATION_MZONE
)
e6
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e6
:
SetCondition
(
c68406755
.
efcon
)
e6
:
SetTarget
(
c68406755
.
attg
)
e6
:
SetValue
(
1
)
c
:
RegisterEffect
(
e6
)
end
end
function
c68406755
.
splimit
(
e
,
se
,
sp
,
st
)
function
c68406755
.
splimit
(
e
,
se
,
sp
,
st
)
return
se
:
GetHandler
():
IsSetCard
(
0xe2
)
return
se
:
GetHandler
():
IsSetCard
(
0xe2
)
...
@@ -69,13 +77,13 @@ end
...
@@ -69,13 +77,13 @@ end
function
c68406755
.
cfilter
(
c
)
function
c68406755
.
cfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0xe2
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0xe2
)
end
end
function
c68406755
.
con
(
e
)
function
c68406755
.
ef
con
(
e
)
return
Duel
.
IsExistingMatchingCard
(
c68406755
.
cfilter
,
e
:
GetHandlerPlayer
(),
LOCATION_ONFIELD
,
0
,
1
,
e
:
GetHandler
())
return
Duel
.
IsExistingMatchingCard
(
c68406755
.
cfilter
,
e
:
GetHandlerPlayer
(),
LOCATION_ONFIELD
,
0
,
1
,
e
:
GetHandler
())
end
end
function
c68406755
.
val
(
e
,
c
)
function
c68406755
.
atk
val
(
e
,
c
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsType
,
c
:
GetControler
(),
LOCATION_GRAVE
,
0
,
nil
,
TYPE_FIELD
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsType
,
c
:
GetControler
(),
LOCATION_GRAVE
,
0
,
nil
,
TYPE_FIELD
)
return
g
:
GetClassCount
(
Card
.
GetCode
)
*
500
return
g
:
GetClassCount
(
Card
.
GetCode
)
*
500
end
end
function
c68406755
.
at
limit
(
e
,
c
)
function
c68406755
.
at
tg
(
e
,
c
)
return
not
c
:
IsCode
(
68406755
)
return
c
:
IsCode
(
68406755
)
end
end
c69058960.lua
View file @
cc72b19f
...
@@ -48,7 +48,6 @@ function c69058960.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -48,7 +48,6 @@ function c69058960.operation(e,tp,eg,ep,ev,re,r,rp)
local
g
=
Duel
.
GetFieldGroup
(
tp
,
0
,
LOCATION_MZONE
)
local
g
=
Duel
.
GetFieldGroup
(
tp
,
0
,
LOCATION_MZONE
)
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
Duel
.
ChangePosition
(
g
,
POS_FACEUP_ATTACK
)
Duel
.
ChangePosition
(
g
,
POS_FACEUP_ATTACK
)
c
:
RegisterFlagEffect
(
69058960
,
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
local
tc
=
g
:
GetFirst
()
local
tc
=
g
:
GetFirst
()
while
tc
do
while
tc
do
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
...
@@ -59,14 +58,14 @@ function c69058960.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -59,14 +58,14 @@ function c69058960.operation(e,tp,eg,ep,ev,re,r,rp)
local
e2
=
e1
:
Clone
()
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EFFECT_MUST_ATTACK_MONSTER
)
e2
:
SetCode
(
EFFECT_MUST_ATTACK_MONSTER
)
tc
:
RegisterEffect
(
e2
)
tc
:
RegisterEffect
(
e2
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetCode
(
EFFECT_MUST_BE_ATTACKED
)
e3
:
SetValue
(
1
)
e3
:
SetReset
(
RESET_EVENT
+
0x1fc0000
+
RESET_PHASE
+
PHASE_END
)
c
:
RegisterEffect
(
e3
)
tc
=
g
:
GetNext
()
tc
=
g
:
GetNext
()
end
end
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetCode
(
EFFECT_MUST_BE_ATTACKED
)
e3
:
SetValue
(
1
)
e3
:
SetReset
(
RESET_EVENT
+
0x1fc0000
+
RESET_PHASE
+
PHASE_END
)
c
:
RegisterEffect
(
e3
)
end
end
end
end
function
c69058960
.
filter
(
c
)
function
c69058960
.
filter
(
c
)
...
...
c95442074.lua
View file @
cc72b19f
...
@@ -48,7 +48,6 @@ function c95442074.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -48,7 +48,6 @@ function c95442074.operation(e,tp,eg,ep,ev,re,r,rp)
local
g
=
Duel
.
GetFieldGroup
(
tp
,
0
,
LOCATION_MZONE
)
local
g
=
Duel
.
GetFieldGroup
(
tp
,
0
,
LOCATION_MZONE
)
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
Duel
.
ChangePosition
(
g
,
POS_FACEUP_ATTACK
)
Duel
.
ChangePosition
(
g
,
POS_FACEUP_ATTACK
)
c
:
RegisterFlagEffect
(
69058960
,
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
local
tc
=
g
:
GetFirst
()
local
tc
=
g
:
GetFirst
()
while
tc
do
while
tc
do
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
...
@@ -59,14 +58,14 @@ function c95442074.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -59,14 +58,14 @@ function c95442074.operation(e,tp,eg,ep,ev,re,r,rp)
local
e2
=
e1
:
Clone
()
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EFFECT_MUST_ATTACK_MONSTER
)
e2
:
SetCode
(
EFFECT_MUST_ATTACK_MONSTER
)
tc
:
RegisterEffect
(
e2
)
tc
:
RegisterEffect
(
e2
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetCode
(
EFFECT_MUST_BE_ATTACKED
)
e3
:
SetValue
(
1
)
e3
:
SetReset
(
RESET_EVENT
+
0x1fc0000
+
RESET_PHASE
+
PHASE_END
)
c
:
RegisterEffect
(
e3
)
tc
=
g
:
GetNext
()
tc
=
g
:
GetNext
()
end
end
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetCode
(
EFFECT_MUST_BE_ATTACKED
)
e3
:
SetValue
(
1
)
e3
:
SetReset
(
RESET_EVENT
+
0x1fc0000
+
RESET_PHASE
+
PHASE_END
)
c
:
RegisterEffect
(
e3
)
end
end
end
end
function
c95442074
.
filter
(
c
)
function
c95442074
.
filter
(
c
)
...
...
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