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
6b9c231b
Commit
6b9c231b
authored
Sep 25, 2016
by
nekrozar
Committed by
DailyShana
Sep 25, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix Ancient Gear and so on (#587)
parent
95e77491
Changes
18
Hide whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
168 additions
and
227 deletions
+168
-227
c10509340.lua
c10509340.lua
+10
-13
c12652643.lua
c12652643.lua
+10
-13
c13293158.lua
c13293158.lua
+10
-13
c17663375.lua
c17663375.lua
+10
-13
c1953925.lua
c1953925.lua
+10
-13
c22858242.lua
c22858242.lua
+10
-13
c39303359.lua
c39303359.lua
+6
-10
c44874522.lua
c44874522.lua
+10
-13
c50933533.lua
c50933533.lua
+10
-13
c52709508.lua
c52709508.lua
+10
-13
c56094445.lua
c56094445.lua
+6
-9
c63465535.lua
c63465535.lua
+10
-13
c7171149.lua
c7171149.lua
+10
-13
c7264861.lua
c7264861.lua
+6
-13
c83104731.lua
c83104731.lua
+10
-13
c87911394.lua
c87911394.lua
+10
-13
c90640901.lua
c90640901.lua
+10
-13
c94515289.lua
c94515289.lua
+10
-13
No files found.
c10509340.lua
View file @
6b9c231b
...
@@ -14,9 +14,13 @@ function c10509340.initial_effect(c)
...
@@ -14,9 +14,13 @@ function c10509340.initial_effect(c)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
--actlimit
--actlimit
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetCode
(
EVENT_ATTACK_ANNOUNCE
)
e3
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e3
:
SetOperation
(
c10509340
.
atkop
)
e3
:
SetCode
(
EFFECT_CANNOT_ACTIVATE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetTargetRange
(
0
,
1
)
e3
:
SetValue
(
c10509340
.
aclimit
)
e3
:
SetCondition
(
c10509340
.
actcon
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
function
c10509340
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c10509340
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
@@ -35,16 +39,9 @@ function c10509340.disop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -35,16 +39,9 @@ function c10509340.disop(e,tp,eg,ep,ev,re,r,rp)
e2
:
SetReset
(
RESET_EVENT
+
0x17a0000
)
e2
:
SetReset
(
RESET_EVENT
+
0x17a0000
)
d
:
RegisterEffect
(
e2
)
d
:
RegisterEffect
(
e2
)
end
end
function
c10509340
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetCode
(
EFFECT_CANNOT_ACTIVATE
)
e1
:
SetTargetRange
(
0
,
1
)
e1
:
SetValue
(
c10509340
.
aclimit
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_DAMAGE
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
function
c10509340
.
aclimit
(
e
,
re
,
tp
)
function
c10509340
.
aclimit
(
e
,
re
,
tp
)
return
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
return
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
end
end
function
c10509340
.
actcon
(
e
)
return
Duel
.
GetAttacker
()
==
e
:
GetHandler
()
end
c12652643.lua
View file @
6b9c231b
...
@@ -17,9 +17,13 @@ function c12652643.initial_effect(c)
...
@@ -17,9 +17,13 @@ function c12652643.initial_effect(c)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
--actlimit
--actlimit
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetCode
(
EVENT_ATTACK_ANNOUNCE
)
e3
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e3
:
SetOperation
(
c12652643
.
atkop
)
e3
:
SetCode
(
EFFECT_CANNOT_ACTIVATE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetTargetRange
(
0
,
1
)
e3
:
SetValue
(
c12652643
.
aclimit
)
e3
:
SetCondition
(
c12652643
.
actcon
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
--Special summon
--Special summon
local
e4
=
Effect
.
CreateEffect
(
c
)
local
e4
=
Effect
.
CreateEffect
(
c
)
...
@@ -32,19 +36,12 @@ function c12652643.initial_effect(c)
...
@@ -32,19 +36,12 @@ function c12652643.initial_effect(c)
e4
:
SetOperation
(
c12652643
.
spop
)
e4
:
SetOperation
(
c12652643
.
spop
)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
end
end
function
c12652643
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetCode
(
EFFECT_CANNOT_ACTIVATE
)
e1
:
SetTargetRange
(
0
,
1
)
e1
:
SetValue
(
c12652643
.
aclimit
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_DAMAGE
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
function
c12652643
.
aclimit
(
e
,
re
,
tp
)
function
c12652643
.
aclimit
(
e
,
re
,
tp
)
return
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
return
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
end
end
function
c12652643
.
actcon
(
e
)
return
Duel
.
GetAttacker
()
==
e
:
GetHandler
()
end
function
c12652643
.
spfilter
(
c
,
e
,
tp
)
function
c12652643
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsCode
(
83104731
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
true
,
false
)
return
c
:
IsCode
(
83104731
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
true
,
false
)
end
end
...
...
c13293158.lua
View file @
6b9c231b
...
@@ -12,9 +12,13 @@ function c13293158.initial_effect(c)
...
@@ -12,9 +12,13 @@ function c13293158.initial_effect(c)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--actlimit
--actlimit
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
EVENT_ATTACK_ANNOUNCE
)
e2
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e2
:
SetOperation
(
c13293158
.
atkop
)
e2
:
SetCode
(
EFFECT_CANNOT_ACTIVATE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetTargetRange
(
0
,
1
)
e2
:
SetValue
(
c13293158
.
aclimit
)
e2
:
SetCondition
(
c13293158
.
actcon
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
--destroy
--destroy
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
...
@@ -31,19 +35,12 @@ c13293158.dark_calling=true
...
@@ -31,19 +35,12 @@ c13293158.dark_calling=true
function
c13293158
.
splimit
(
e
,
se
,
sp
,
st
)
function
c13293158
.
splimit
(
e
,
se
,
sp
,
st
)
return
st
==
SUMMON_TYPE_FUSION
+
0x10
return
st
==
SUMMON_TYPE_FUSION
+
0x10
end
end
function
c13293158
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetCode
(
EFFECT_CANNOT_ACTIVATE
)
e1
:
SetTargetRange
(
0
,
1
)
e1
:
SetValue
(
c13293158
.
aclimit
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_DAMAGE
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
function
c13293158
.
aclimit
(
e
,
re
,
tp
)
function
c13293158
.
aclimit
(
e
,
re
,
tp
)
return
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
return
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
end
end
function
c13293158
.
actcon
(
e
)
return
Duel
.
GetAttacker
()
==
e
:
GetHandler
()
end
function
c13293158
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c13293158
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
ep
~=
tp
return
ep
~=
tp
end
end
...
...
c17663375.lua
View file @
6b9c231b
...
@@ -16,9 +16,13 @@ function c17663375.initial_effect(c)
...
@@ -16,9 +16,13 @@ function c17663375.initial_effect(c)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
--actlimit
--actlimit
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetCode
(
EVENT_ATTACK_ANNOUNCE
)
e3
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e3
:
SetOperation
(
c17663375
.
atkop
)
e3
:
SetCode
(
EFFECT_CANNOT_ACTIVATE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetTargetRange
(
0
,
1
)
e3
:
SetValue
(
c17663375
.
aclimit
)
e3
:
SetCondition
(
c17663375
.
actcon
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
function
c17663375
.
thfilter
(
c
)
function
c17663375
.
thfilter
(
c
)
...
@@ -57,16 +61,9 @@ end
...
@@ -57,16 +61,9 @@ end
function
c17663375
.
sumlimit
(
e
,
c
,
sump
,
sumtype
,
sumpos
,
targetp
)
function
c17663375
.
sumlimit
(
e
,
c
,
sump
,
sumtype
,
sumpos
,
targetp
)
return
bit
.
band
(
sumpos
,
POS_FACEDOWN
)
>
0
return
bit
.
band
(
sumpos
,
POS_FACEDOWN
)
>
0
end
end
function
c17663375
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetCode
(
EFFECT_CANNOT_ACTIVATE
)
e1
:
SetTargetRange
(
0
,
1
)
e1
:
SetValue
(
c17663375
.
aclimit
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_DAMAGE
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
function
c17663375
.
aclimit
(
e
,
re
,
tp
)
function
c17663375
.
aclimit
(
e
,
re
,
tp
)
return
re
:
IsActiveType
(
TYPE_MONSTER
)
and
not
re
:
GetHandler
():
IsImmuneToEffect
(
e
)
return
re
:
IsActiveType
(
TYPE_MONSTER
)
and
not
re
:
GetHandler
():
IsImmuneToEffect
(
e
)
end
end
function
c17663375
.
actcon
(
e
)
return
Duel
.
GetAttacker
()
==
e
:
GetHandler
()
end
c1953925.lua
View file @
6b9c231b
...
@@ -20,9 +20,13 @@ function c1953925.initial_effect(c)
...
@@ -20,9 +20,13 @@ function c1953925.initial_effect(c)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
--actlimit
--actlimit
local
e4
=
Effect
.
CreateEffect
(
c
)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e4
:
SetType
(
EFFECT_TYPE_FIELD
)
e4
:
SetCode
(
EVENT_ATTACK_ANNOUNCE
)
e4
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e4
:
SetOperation
(
c1953925
.
atkop
)
e4
:
SetCode
(
EFFECT_CANNOT_ACTIVATE
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetTargetRange
(
0
,
1
)
e4
:
SetValue
(
c1953925
.
aclimit
)
e4
:
SetCondition
(
c1953925
.
actcon
)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
--destroy
--destroy
local
e5
=
Effect
.
CreateEffect
(
c
)
local
e5
=
Effect
.
CreateEffect
(
c
)
...
@@ -52,19 +56,12 @@ function c1953925.disop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -52,19 +56,12 @@ function c1953925.disop(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
end
end
function
c1953925
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetCode
(
EFFECT_CANNOT_ACTIVATE
)
e1
:
SetTargetRange
(
0
,
1
)
e1
:
SetValue
(
c1953925
.
aclimit
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_DAMAGE
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
function
c1953925
.
aclimit
(
e
,
re
,
tp
)
function
c1953925
.
aclimit
(
e
,
re
,
tp
)
return
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
return
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
end
end
function
c1953925
.
actcon
(
e
)
return
Duel
.
GetAttacker
()
==
e
:
GetHandler
()
end
function
c1953925
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c1953925
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
()
==
Duel
.
GetAttacker
()
and
e
:
GetHandler
():
IsRelateToBattle
()
return
e
:
GetHandler
()
==
Duel
.
GetAttacker
()
and
e
:
GetHandler
():
IsRelateToBattle
()
end
end
...
...
c22858242.lua
View file @
6b9c231b
...
@@ -5,9 +5,13 @@ function c22858242.initial_effect(c)
...
@@ -5,9 +5,13 @@ function c22858242.initial_effect(c)
c
:
EnableReviveLimit
()
c
:
EnableReviveLimit
()
--actlimit
--actlimit
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EVENT_ATTACK_ANNOUNCE
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetOperation
(
c22858242
.
lmop
)
e1
:
SetCode
(
EFFECT_CANNOT_ACTIVATE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetTargetRange
(
0
,
1
)
e1
:
SetValue
(
c22858242
.
aclimit
)
e1
:
SetCondition
(
c22858242
.
actcon
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--negate attack
--negate attack
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
...
@@ -22,19 +26,12 @@ function c22858242.initial_effect(c)
...
@@ -22,19 +26,12 @@ function c22858242.initial_effect(c)
e2
:
SetOperation
(
c22858242
.
activate
)
e2
:
SetOperation
(
c22858242
.
activate
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c22858242
.
lmop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetCode
(
EFFECT_CANNOT_ACTIVATE
)
e1
:
SetTargetRange
(
0
,
1
)
e1
:
SetValue
(
c22858242
.
aclimit
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_DAMAGE
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
function
c22858242
.
aclimit
(
e
,
re
,
tp
)
function
c22858242
.
aclimit
(
e
,
re
,
tp
)
return
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
return
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
end
end
function
c22858242
.
actcon
(
e
)
return
Duel
.
GetAttacker
()
==
e
:
GetHandler
()
end
function
c22858242
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c22858242
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
GetFirst
():
IsControler
(
1
-
tp
)
return
eg
:
GetFirst
():
IsControler
(
1
-
tp
)
end
end
...
...
c39303359.lua
View file @
6b9c231b
...
@@ -3,22 +3,18 @@ function c39303359.initial_effect(c)
...
@@ -3,22 +3,18 @@ function c39303359.initial_effect(c)
aux
.
EnableDualAttribute
(
c
)
aux
.
EnableDualAttribute
(
c
)
--actlimit
--actlimit
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetCode
(
EVENT_ATTACK_ANNOUNCE
)
e1
:
SetCondition
(
aux
.
IsDualState
)
e1
:
SetOperation
(
c39303359
.
atkop
)
c
:
RegisterEffect
(
e1
)
end
function
c39303359
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetCode
(
EFFECT_CANNOT_ACTIVATE
)
e1
:
SetCode
(
EFFECT_CANNOT_ACTIVATE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetTargetRange
(
0
,
1
)
e1
:
SetTargetRange
(
0
,
1
)
e1
:
SetValue
(
c39303359
.
aclimit
)
e1
:
SetValue
(
c39303359
.
aclimit
)
e1
:
Set
Reset
(
RESET_PHASE
+
PHASE_DAMAGE
)
e1
:
Set
Condition
(
c39303359
.
actcon
)
Duel
.
RegisterEffect
(
e1
,
tp
)
c
:
RegisterEffect
(
e1
)
end
end
function
c39303359
.
aclimit
(
e
,
re
,
tp
)
function
c39303359
.
aclimit
(
e
,
re
,
tp
)
return
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
return
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
end
end
function
c39303359
.
actcon
(
e
)
return
aux
.
IsDualState
(
e
)
and
Duel
.
GetAttacker
()
==
e
:
GetHandler
()
end
c44874522.lua
View file @
6b9c231b
...
@@ -16,9 +16,13 @@ function c44874522.initial_effect(c)
...
@@ -16,9 +16,13 @@ function c44874522.initial_effect(c)
e2
:
SetLabelObject
(
e1
)
e2
:
SetLabelObject
(
e1
)
--actlimit
--actlimit
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetCode
(
EVENT_ATTACK_ANNOUNCE
)
e3
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e3
:
SetOperation
(
c44874522
.
atkop
)
e3
:
SetCode
(
EFFECT_CANNOT_ACTIVATE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetTargetRange
(
0
,
1
)
e3
:
SetValue
(
c44874522
.
aclimit
)
e3
:
SetCondition
(
c44874522
.
actcon
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
--Destroy
--Destroy
local
e4
=
Effect
.
CreateEffect
(
c
)
local
e4
=
Effect
.
CreateEffect
(
c
)
...
@@ -64,19 +68,12 @@ function c44874522.regop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -64,19 +68,12 @@ function c44874522.regop(e,tp,eg,ep,ev,re,r,rp)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
end
end
function
c44874522
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetCode
(
EFFECT_CANNOT_ACTIVATE
)
e1
:
SetTargetRange
(
0
,
1
)
e1
:
SetValue
(
c44874522
.
aclimit
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_DAMAGE
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
function
c44874522
.
aclimit
(
e
,
re
,
tp
)
function
c44874522
.
aclimit
(
e
,
re
,
tp
)
return
(
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
or
re
:
IsActiveType
(
TYPE_MONSTER
))
and
not
re
:
GetHandler
():
IsImmuneToEffect
(
e
)
return
(
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
or
re
:
IsActiveType
(
TYPE_MONSTER
))
and
not
re
:
GetHandler
():
IsImmuneToEffect
(
e
)
end
end
function
c44874522
.
actcon
(
e
)
return
Duel
.
GetAttacker
()
==
e
:
GetHandler
()
end
function
c44874522
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c44874522
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetAttacker
()
==
e
:
GetHandler
()
and
e
:
GetHandler
():
IsRelateToBattle
()
return
Duel
.
GetAttacker
()
==
e
:
GetHandler
()
and
e
:
GetHandler
():
IsRelateToBattle
()
end
end
...
...
c50933533.lua
View file @
6b9c231b
...
@@ -16,24 +16,21 @@ function c50933533.initial_effect(c)
...
@@ -16,24 +16,21 @@ function c50933533.initial_effect(c)
e2
:
SetLabelObject
(
e1
)
e2
:
SetLabelObject
(
e1
)
--actlimit
--actlimit
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetCode
(
EVENT_ATTACK_ANNOUNCE
)
e3
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e3
:
SetOperation
(
c50933533
.
atkop
)
e3
:
SetCode
(
EFFECT_CANNOT_ACTIVATE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetTargetRange
(
0
,
1
)
e3
:
SetValue
(
c50933533
.
aclimit
)
e3
:
SetCondition
(
c50933533
.
actcon
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
function
c50933533
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetCode
(
EFFECT_CANNOT_ACTIVATE
)
e1
:
SetTargetRange
(
0
,
1
)
e1
:
SetValue
(
c50933533
.
aclimit
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_DAMAGE
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
function
c50933533
.
aclimit
(
e
,
re
,
tp
)
function
c50933533
.
aclimit
(
e
,
re
,
tp
)
return
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
return
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
end
end
function
c50933533
.
actcon
(
e
)
return
Duel
.
GetAttacker
()
==
e
:
GetHandler
()
end
function
c50933533
.
valcheck
(
e
,
c
)
function
c50933533
.
valcheck
(
e
,
c
)
local
g
=
c
:
GetMaterial
()
local
g
=
c
:
GetMaterial
()
local
flag
=
0
local
flag
=
0
...
...
c52709508.lua
View file @
6b9c231b
...
@@ -40,9 +40,13 @@ function c52709508.regop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -40,9 +40,13 @@ function c52709508.regop(e,tp,eg,ep,ev,re,r,rp)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
bit
.
band
(
att
,
ATTRIBUTE_EARTH
)
~=
0
then
if
bit
.
band
(
att
,
ATTRIBUTE_EARTH
)
~=
0
then
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EVENT_ATTACK_ANNOUNCE
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetOperation
(
c52709508
.
atkop
)
e1
:
SetCode
(
EFFECT_CANNOT_ACTIVATE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetTargetRange
(
0
,
1
)
e1
:
SetValue
(
c52709508
.
aclimit
)
e1
:
SetCondition
(
c52709508
.
actcon
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterFlagEffect
(
0
,
RESET_EVENT
+
0x1fe0000
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
0
,
aux
.
Stringid
(
52709508
,
2
))
c
:
RegisterFlagEffect
(
0
,
RESET_EVENT
+
0x1fe0000
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
0
,
aux
.
Stringid
(
52709508
,
2
))
...
@@ -76,19 +80,12 @@ function c52709508.regop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -76,19 +80,12 @@ function c52709508.regop(e,tp,eg,ep,ev,re,r,rp)
c
:
RegisterFlagEffect
(
0
,
RESET_EVENT
+
0x1fe0000
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
0
,
aux
.
Stringid
(
52709508
,
4
))
c
:
RegisterFlagEffect
(
0
,
RESET_EVENT
+
0x1fe0000
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
0
,
aux
.
Stringid
(
52709508
,
4
))
end
end
end
end
function
c52709508
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetCode
(
EFFECT_CANNOT_ACTIVATE
)
e1
:
SetTargetRange
(
0
,
1
)
e1
:
SetValue
(
c52709508
.
aclimit
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_DAMAGE
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
function
c52709508
.
aclimit
(
e
,
re
,
tp
)
function
c52709508
.
aclimit
(
e
,
re
,
tp
)
return
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
return
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
end
end
function
c52709508
.
actcon
(
e
)
return
Duel
.
GetAttacker
()
==
e
:
GetHandler
()
end
function
c52709508
.
damcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c52709508
.
damcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
t
=
Duel
.
GetAttackTarget
()
local
t
=
Duel
.
GetAttackTarget
()
...
...
c56094445.lua
View file @
6b9c231b
...
@@ -2,21 +2,18 @@
...
@@ -2,21 +2,18 @@
function
c56094445
.
initial_effect
(
c
)
function
c56094445
.
initial_effect
(
c
)
--actlimit
--actlimit
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetCode
(
EVENT_ATTACK_ANNOUNCE
)
e1
:
SetOperation
(
c56094445
.
atkop
)
c
:
RegisterEffect
(
e1
)
end
function
c56094445
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetCode
(
EFFECT_CANNOT_ACTIVATE
)
e1
:
SetCode
(
EFFECT_CANNOT_ACTIVATE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetTargetRange
(
0
,
1
)
e1
:
SetTargetRange
(
0
,
1
)
e1
:
SetValue
(
c56094445
.
aclimit
)
e1
:
SetValue
(
c56094445
.
aclimit
)
e1
:
Set
Reset
(
RESET_PHASE
+
PHASE_DAMAGE
)
e1
:
Set
Condition
(
c56094445
.
actcon
)
Duel
.
RegisterEffect
(
e1
,
tp
)
c
:
RegisterEffect
(
e1
)
end
end
function
c56094445
.
aclimit
(
e
,
re
,
tp
)
function
c56094445
.
aclimit
(
e
,
re
,
tp
)
return
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
return
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
end
end
function
c56094445
.
actcon
(
e
)
return
Duel
.
GetAttacker
()
==
e
:
GetHandler
()
end
c63465535.lua
View file @
6b9c231b
...
@@ -5,9 +5,13 @@ function c63465535.initial_effect(c)
...
@@ -5,9 +5,13 @@ function c63465535.initial_effect(c)
c
:
EnableReviveLimit
()
c
:
EnableReviveLimit
()
--actlimit
--actlimit
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EVENT_ATTACK_ANNOUNCE
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetOperation
(
c63465535
.
operation
)
e1
:
SetCode
(
EFFECT_CANNOT_ACTIVATE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetTargetRange
(
0
,
1
)
e1
:
SetValue
(
c63465535
.
aclimit
)
e1
:
SetCondition
(
c63465535
.
actcon
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--equip
--equip
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
...
@@ -32,19 +36,12 @@ function c63465535.initial_effect(c)
...
@@ -32,19 +36,12 @@ function c63465535.initial_effect(c)
e3
:
SetLabelObject
(
e2
)
e3
:
SetLabelObject
(
e2
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
function
c63465535
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetCode
(
EFFECT_CANNOT_ACTIVATE
)
e1
:
SetTargetRange
(
0
,
1
)
e1
:
SetValue
(
c63465535
.
aclimit
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_DAMAGE
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
function
c63465535
.
aclimit
(
e
,
re
,
tp
)
function
c63465535
.
aclimit
(
e
,
re
,
tp
)
return
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
return
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
end
end
function
c63465535
.
actcon
(
e
)
return
Duel
.
GetAttacker
()
==
e
:
GetHandler
()
end
function
c63465535
.
eqcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c63465535
.
eqcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
ec
=
e
:
GetLabelObject
()
local
ec
=
e
:
GetLabelObject
()
...
...
c7171149.lua
View file @
6b9c231b
...
@@ -20,9 +20,13 @@ function c7171149.initial_effect(c)
...
@@ -20,9 +20,13 @@ function c7171149.initial_effect(c)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
--actlimit
--actlimit
local
e5
=
Effect
.
CreateEffect
(
c
)
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e5
:
SetType
(
EFFECT_TYPE_FIELD
)
e5
:
SetCode
(
EVENT_ATTACK_ANNOUNCE
)
e5
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e5
:
SetOperation
(
c7171149
.
atkop
)
e5
:
SetCode
(
EFFECT_CANNOT_ACTIVATE
)
e5
:
SetRange
(
LOCATION_MZONE
)
e5
:
SetTargetRange
(
0
,
1
)
e5
:
SetValue
(
c7171149
.
aclimit
)
e5
:
SetCondition
(
c7171149
.
actcon
)
c
:
RegisterEffect
(
e5
)
c
:
RegisterEffect
(
e5
)
--pierce
--pierce
local
e6
=
Effect
.
CreateEffect
(
c
)
local
e6
=
Effect
.
CreateEffect
(
c
)
...
@@ -48,16 +52,9 @@ function c7171149.dircon(e)
...
@@ -48,16 +52,9 @@ function c7171149.dircon(e)
return
Duel
.
IsExistingMatchingCard
(
c7171149
.
cfilter1
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
return
Duel
.
IsExistingMatchingCard
(
c7171149
.
cfilter1
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
and
not
Duel
.
IsExistingMatchingCard
(
c7171149
.
cfilter2
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
and
not
Duel
.
IsExistingMatchingCard
(
c7171149
.
cfilter2
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
end
function
c7171149
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetCode
(
EFFECT_CANNOT_ACTIVATE
)
e1
:
SetTargetRange
(
0
,
1
)
e1
:
SetValue
(
c7171149
.
aclimit
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_DAMAGE
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
function
c7171149
.
aclimit
(
e
,
re
,
tp
)
function
c7171149
.
aclimit
(
e
,
re
,
tp
)
return
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
return
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
end
end
function
c7171149
.
actcon
(
e
)
return
Duel
.
GetAttacker
()
==
e
:
GetHandler
()
end
c7264861.lua
View file @
6b9c231b
...
@@ -2,24 +2,17 @@
...
@@ -2,24 +2,17 @@
function
c7264861
.
initial_effect
(
c
)
function
c7264861
.
initial_effect
(
c
)
--actlimit
--actlimit
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetCode
(
EVENT_ATTACK_ANNOUNCE
)
e1
:
SetCondition
(
c7264861
.
condition
)
e1
:
SetOperation
(
c7264861
.
operation
)
c
:
RegisterEffect
(
e1
)
end
function
c7264861
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_HAND
,
0
)
==
0
end
function
c7264861
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetCode
(
EFFECT_CANNOT_ACTIVATE
)
e1
:
SetCode
(
EFFECT_CANNOT_ACTIVATE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetTargetRange
(
0
,
1
)
e1
:
SetTargetRange
(
0
,
1
)
e1
:
SetValue
(
c7264861
.
aclimit
)
e1
:
SetValue
(
c7264861
.
aclimit
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_DAMAGE
)
e1
:
SetCondition
(
c7264861
.
condition
)
Duel
.
RegisterEffect
(
e1
,
tp
)
c
:
RegisterEffect
(
e1
)
end
function
c7264861
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_HAND
,
0
)
==
0
and
Duel
.
GetAttacker
()
==
e
:
GetHandler
()
end
end
function
c7264861
.
aclimit
(
e
,
re
,
tp
)
function
c7264861
.
aclimit
(
e
,
re
,
tp
)
return
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
return
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
...
...
c83104731.lua
View file @
6b9c231b
...
@@ -13,21 +13,18 @@ function c83104731.initial_effect(c)
...
@@ -13,21 +13,18 @@ function c83104731.initial_effect(c)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
--actlimit
--actlimit
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetCode
(
EVENT_ATTACK_ANNOUNCE
)
e3
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e3
:
SetOperation
(
c83104731
.
atkop
)
e3
:
SetCode
(
EFFECT_CANNOT_ACTIVATE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetTargetRange
(
0
,
1
)
e3
:
SetValue
(
c83104731
.
aclimit
)
e3
:
SetCondition
(
c83104731
.
actcon
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
function
c83104731
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetCode
(
EFFECT_CANNOT_ACTIVATE
)
e1
:
SetTargetRange
(
0
,
1
)
e1
:
SetValue
(
c83104731
.
aclimit
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_DAMAGE
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
function
c83104731
.
aclimit
(
e
,
re
,
tp
)
function
c83104731
.
aclimit
(
e
,
re
,
tp
)
return
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
return
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
end
end
function
c83104731
.
actcon
(
e
)
return
Duel
.
GetAttacker
()
==
e
:
GetHandler
()
end
c87911394.lua
View file @
6b9c231b
...
@@ -5,9 +5,13 @@ function c87911394.initial_effect(c)
...
@@ -5,9 +5,13 @@ function c87911394.initial_effect(c)
c
:
EnableReviveLimit
()
c
:
EnableReviveLimit
()
--actlimit
--actlimit
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EVENT_ATTACK_ANNOUNCE
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetOperation
(
c87911394
.
operation
)
e1
:
SetCode
(
EFFECT_CANNOT_ACTIVATE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetTargetRange
(
0
,
1
)
e1
:
SetValue
(
c87911394
.
aclimit
)
e1
:
SetCondition
(
c87911394
.
actcon
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--destroy
--destroy
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
...
@@ -21,19 +25,12 @@ function c87911394.initial_effect(c)
...
@@ -21,19 +25,12 @@ function c87911394.initial_effect(c)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
c87911394
.
xyz_number
=
39
c87911394
.
xyz_number
=
39
function
c87911394
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetCode
(
EFFECT_CANNOT_ACTIVATE
)
e1
:
SetTargetRange
(
0
,
1
)
e1
:
SetValue
(
c87911394
.
aclimit
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_DAMAGE
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
function
c87911394
.
aclimit
(
e
,
re
,
tp
)
function
c87911394
.
aclimit
(
e
,
re
,
tp
)
return
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
return
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
end
end
function
c87911394
.
actcon
(
e
)
return
Duel
.
GetAttacker
()
==
e
:
GetHandler
()
end
function
c87911394
.
atkcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c87911394
.
atkcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
at
=
Duel
.
GetAttackTarget
()
local
at
=
Duel
.
GetAttackTarget
()
return
at
and
at
:
IsFaceup
()
and
e
:
GetHandler
():
GetOverlayGroup
():
IsExists
(
Card
.
IsSetCard
,
1
,
nil
,
0x107f
)
return
at
and
at
:
IsFaceup
()
and
e
:
GetHandler
():
GetOverlayGroup
():
IsExists
(
Card
.
IsSetCard
,
1
,
nil
,
0x107f
)
...
...
c90640901.lua
View file @
6b9c231b
...
@@ -11,9 +11,13 @@ function c90640901.initial_effect(c)
...
@@ -11,9 +11,13 @@ function c90640901.initial_effect(c)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
--actlimit
--actlimit
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetCode
(
EVENT_ATTACK_ANNOUNCE
)
e3
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e3
:
SetOperation
(
c90640901
.
atkop
)
e3
:
SetCode
(
EFFECT_CANNOT_ACTIVATE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetTargetRange
(
0
,
1
)
e3
:
SetValue
(
c90640901
.
aclimit
)
e3
:
SetCondition
(
c90640901
.
actcon
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
--destroy
--destroy
local
e4
=
Effect
.
CreateEffect
(
c
)
local
e4
=
Effect
.
CreateEffect
(
c
)
...
@@ -29,19 +33,12 @@ end
...
@@ -29,19 +33,12 @@ end
function
c90640901
.
vala
(
e
,
c
)
function
c90640901
.
vala
(
e
,
c
)
return
not
c
:
IsFacedown
()
return
not
c
:
IsFacedown
()
end
end
function
c90640901
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetCode
(
EFFECT_CANNOT_ACTIVATE
)
e1
:
SetTargetRange
(
0
,
1
)
e1
:
SetValue
(
c90640901
.
aclimit
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_DAMAGE
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
function
c90640901
.
aclimit
(
e
,
re
,
tp
)
function
c90640901
.
aclimit
(
e
,
re
,
tp
)
return
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
return
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
end
end
function
c90640901
.
actcon
(
e
)
return
Duel
.
GetAttacker
()
==
e
:
GetHandler
()
end
function
c90640901
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c90640901
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
d
=
Duel
.
GetAttackTarget
()
local
d
=
Duel
.
GetAttackTarget
()
return
e
:
GetHandler
()
==
Duel
.
GetAttacker
()
and
d
and
d
:
IsFacedown
()
and
d
:
IsDefensePos
()
return
e
:
GetHandler
()
==
Duel
.
GetAttacker
()
and
d
and
d
:
IsFacedown
()
and
d
:
IsDefensePos
()
...
...
c94515289.lua
View file @
6b9c231b
...
@@ -5,9 +5,13 @@ function c94515289.initial_effect(c)
...
@@ -5,9 +5,13 @@ function c94515289.initial_effect(c)
c
:
EnableReviveLimit
()
c
:
EnableReviveLimit
()
--actlimit
--actlimit
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EVENT_ATTACK_ANNOUNCE
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetOperation
(
c94515289
.
operation
)
e1
:
SetCode
(
EFFECT_CANNOT_ACTIVATE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetTargetRange
(
0
,
1
)
e1
:
SetValue
(
c94515289
.
aclimit
)
e1
:
SetCondition
(
c94515289
.
actcon
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--special summon
--special summon
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
...
@@ -21,19 +25,12 @@ function c94515289.initial_effect(c)
...
@@ -21,19 +25,12 @@ function c94515289.initial_effect(c)
e2
:
SetOperation
(
c94515289
.
spop
)
e2
:
SetOperation
(
c94515289
.
spop
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c94515289
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetCode
(
EFFECT_CANNOT_ACTIVATE
)
e1
:
SetTargetRange
(
0
,
1
)
e1
:
SetValue
(
c94515289
.
aclimit
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_DAMAGE
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
function
c94515289
.
aclimit
(
e
,
re
,
tp
)
function
c94515289
.
aclimit
(
e
,
re
,
tp
)
return
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
return
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
end
end
function
c94515289
.
actcon
(
e
)
return
Duel
.
GetAttacker
()
==
e
:
GetHandler
()
end
function
c94515289
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c94515289
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
return
c
:
IsLocation
(
LOCATION_GRAVE
)
and
c
:
IsReason
(
REASON_BATTLE
)
and
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_MZONE
,
0
)
==
0
return
c
:
IsLocation
(
LOCATION_GRAVE
)
and
c
:
IsReason
(
REASON_BATTLE
)
and
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_MZONE
,
0
)
==
0
...
...
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