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
65dff75f
Commit
65dff75f
authored
Mar 22, 2019
by
salix5
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
flip monsters
parent
e75194ae
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
29 additions
and
18 deletions
+29
-18
c14644902.lua
c14644902.lua
+0
-4
c33950246.lua
c33950246.lua
+28
-6
c66235877.lua
c66235877.lua
+0
-7
constant.lua
constant.lua
+1
-1
No files found.
c14644902.lua
View file @
65dff75f
...
@@ -32,7 +32,6 @@ function c14644902.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -32,7 +32,6 @@ function c14644902.operation(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e1
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e1
:
SetCondition
(
c14644902
.
descon
)
e1
:
SetOperation
(
c14644902
.
desop
)
e1
:
SetOperation
(
c14644902
.
desop
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
e1
:
SetCountLimit
(
1
)
e1
:
SetCountLimit
(
1
)
...
@@ -40,9 +39,6 @@ function c14644902.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -40,9 +39,6 @@ function c14644902.operation(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
end
end
function
c14644902
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
not
e
:
GetHandler
():
IsHasEffect
(
66235877
)
end
function
c14644902
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c14644902
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Destroy
(
e
:
GetHandler
(),
REASON_EFFECT
)
Duel
.
Destroy
(
e
:
GetHandler
(),
REASON_EFFECT
)
end
end
c33950246.lua
View file @
65dff75f
...
@@ -5,16 +5,38 @@ function c33950246.initial_effect(c)
...
@@ -5,16 +5,38 @@ function c33950246.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--
disable effect
--
cannot activate
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
EVENT_CHAIN_ACTIVATING
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetOperation
(
c33950246
.
disop
)
e2
:
SetCode
(
EFFECT_CANNOT_ACTIVATE
)
e2
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e2
:
SetTargetRange
(
1
,
1
)
e2
:
SetValue
(
c33950246
.
aclimit
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
--disable
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetTargetRange
(
LOCATION_MZONE
,
LOCATION_MZONE
)
e2
:
SetTarget
(
c33950246
.
disable
)
e2
:
SetCode
(
EFFECT_DISABLE
)
c
:
RegisterEffect
(
e2
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e3
:
SetCode
(
EVENT_CHAIN_SOLVING
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetOperation
(
c33950246
.
disop
)
c
:
RegisterEffect
(
e3
)
end
function
c33950246
.
aclimit
(
e
,
re
,
tp
)
return
re
:
IsActiveType
(
TYPE_FLIP
)
and
not
re
:
GetHandler
():
IsImmuneToEffect
(
e
)
end
function
c33950246
.
disable
(
e
,
c
)
return
c
:
IsType
(
TYPE_FLIP
)
end
end
function
c33950246
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c33950246
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
re
:
IsActiveType
(
TYPE_FLIP
)
then
if
re
:
IsActiveType
(
TYPE_FLIP
)
then
Duel
.
Negate
Activation
(
ev
)
Duel
.
Negate
Effect
(
ev
)
end
end
end
end
c66235877.lua
View file @
65dff75f
...
@@ -18,13 +18,6 @@ function c66235877.initial_effect(c)
...
@@ -18,13 +18,6 @@ function c66235877.initial_effect(c)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetOperation
(
c66235877
.
disop
)
e2
:
SetOperation
(
c66235877
.
disop
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
--
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetCode
(
66235877
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetTargetRange
(
LOCATION_MZONE
,
LOCATION_MZONE
)
c
:
RegisterEffect
(
e3
)
end
end
function
c66235877
.
distg
(
e
,
c
)
function
c66235877
.
distg
(
e
,
c
)
return
c
:
IsType
(
TYPE_FLIP
)
return
c
:
IsType
(
TYPE_FLIP
)
...
...
constant.lua
View file @
65dff75f
...
@@ -20,7 +20,7 @@ LOCATION_FZONE =0x100 --场地区
...
@@ -20,7 +20,7 @@ LOCATION_FZONE =0x100 --场地区
LOCATION_PZONE
=
0x200
--灵摆区
LOCATION_PZONE
=
0x200
--灵摆区
--Positions 表示形式
--Positions 表示形式
POS_FACEUP_ATTACK
=
0x1
--表侧攻击
POS_FACEUP_ATTACK
=
0x1
--表侧攻击
POS_FACEDOWN_ATTACK
=
0x2
--
N/A
POS_FACEDOWN_ATTACK
=
0x2
--
(reserved)
POS_FACEUP_DEFENSE
=
0x4
--表侧守备
POS_FACEUP_DEFENSE
=
0x4
--表侧守备
POS_FACEDOWN_DEFENSE
=
0x8
--里侧守备
POS_FACEDOWN_DEFENSE
=
0x8
--里侧守备
POS_FACEUP
=
0x5
--正面表示
POS_FACEUP
=
0x5
--正面表示
...
...
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