Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro
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
Commits
094c04e7
Commit
094c04e7
authored
Nov 02, 2014
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
0e97b46a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
45 deletions
+31
-45
script/c64203620.lua
script/c64203620.lua
+9
-15
script/c91697229.lua
script/c91697229.lua
+21
-30
script/utility.lua
script/utility.lua
+1
-0
No files found.
script/c64203620.lua
View file @
094c04e7
--極星邪竜ヨルムンガンド
function
c64203620
.
initial_effect
(
c
)
c
:
EnableReviveLimit
()
--special summon
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
64203620
,
0
))
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_SPSUMMON_PROC
)
e1
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
+
EFFECT_FLAG_SPSUM_PARAM
)
e1
:
SetRange
(
LOCATION_HAND
)
e1
:
SetTargetRange
(
POS_FACEUP_DEFENCE
,
1
)
e1
:
SetCondition
(
c64203620
.
spcon
)
c
:
RegisterEffect
(
e1
)
--summon limit
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_CANNOT_SUMMON
)
c
:
RegisterEffect
(
e2
)
--
local
e3
=
e2
:
Clone
()
e3
:
SetCode
(
EFFECT_CANNOT_MSET
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e1
)
--self destory
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
)
e4
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
...
...
@@ -30,7 +24,7 @@ function c64203620.initial_effect(c)
e5
:
SetDescription
(
aux
.
Stringid
(
64203620
,
1
))
e5
:
SetCategory
(
CATEGORY_DAMAGE
)
e5
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_F
)
e5
:
SetProperty
(
EFFECT_FLAG_
DAMAGE_STEP
+
EFFECT_FLAG_
NO_TURN_RESET
)
e5
:
SetProperty
(
EFFECT_FLAG_NO_TURN_RESET
)
e5
:
SetCode
(
EVENT_CHANGE_POS
)
e5
:
SetCountLimit
(
1
)
e5
:
SetCondition
(
c64203620
.
damcon
)
...
...
@@ -41,17 +35,17 @@ end
function
c64203620
.
spcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
local
tp
=
c
:
GetControler
()
return
Duel
.
GetLocationCount
(
1
-
tp
,
LOCATION_MZONE
)
>
-
1
return
Duel
.
GetLocationCount
(
1
-
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c64203620
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
)
end
function
c64203620
.
filter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x4b
)
end
function
c64203620
.
descon
(
e
,
tp
)
return
not
Duel
.
IsExistingMatchingCard
(
c64203620
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
)
function
c64203620
.
descon
(
e
)
return
not
Duel
.
IsExistingMatchingCard
(
c64203620
.
filter
,
0
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
)
end
function
c64203620
.
damcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
GetPosition
()
==
POS_FACEUP_ATTACK
and
e
:
GetHandler
():
GetPreviousPosition
()
>
0x3
return
e
:
GetHandler
():
IsPosition
(
POS_FACEUP_ATTACK
)
and
e
:
GetHandler
():
IsPreviousPosition
(
POS_FACEUP_ATTACK
)
end
function
c64203620
.
damtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
...
...
script/c91697229.lua
View file @
094c04e7
--極星邪狼フェンリル
function
c91697229
.
initial_effect
(
c
)
c
:
EnableReviveLimit
()
--special summon
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
91697229
,
0
))
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_SPSUMMON_PROC
)
e1
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
+
EFFECT_FLAG_SPSUM_PARAM
)
e1
:
SetRange
(
LOCATION_HAND
)
e1
:
SetTargetRange
(
POS_FACEUP_DEFENCE
,
1
)
e1
:
SetCondition
(
c91697229
.
spcon
)
c
:
RegisterEffect
(
e1
)
--summon limit
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_CANNOT_SUMMON
)
c
:
RegisterEffect
(
e2
)
--
local
e3
=
e2
:
Clone
()
e3
:
SetCode
(
EFFECT_CANNOT_MSET
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e1
)
--self destroy
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
)
e4
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
...
...
@@ -25,55 +19,52 @@ function c91697229.initial_effect(c)
e4
:
SetCode
(
EFFECT_SELF_DESTROY
)
e4
:
SetCondition
(
c91697229
.
descon
)
c
:
RegisterEffect
(
e4
)
--pos
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetDescription
(
aux
.
Stringid
(
91697229
,
1
))
e5
:
SetCategory
(
CATEGORY_POSITION
)
e5
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
e5
:
SetCode
(
EVENT_PHASE_START
+
PHASE_BATTLE
)
e5
:
SetRange
(
LOCATION_MZONE
)
e5
:
SetCountLimit
(
1
)
e5
:
SetCondition
(
c91697229
.
poscon
)
e5
:
SetTarget
(
c91697229
.
postg
)
e5
:
SetOperation
(
c91697229
.
posop
)
c
:
RegisterEffect
(
e5
)
--d
ouble reflect d
amage
--damage
local
e6
=
Effect
.
CreateEffect
(
c
)
e6
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_FIELD
)
e6
:
SetRange
(
LOCATION_MZONE
)
e6
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_SINGLE
)
e6
:
SetCode
(
EVENT_PRE_BATTLE_DAMAGE
)
e6
:
SetCondition
(
c91697229
.
dcon
)
e6
:
SetOperation
(
c91697229
.
dop
)
e6
:
SetOperation
(
c91697229
.
damop
)
c
:
RegisterEffect
(
e6
)
end
function
c91697229
.
spcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
local
tp
=
c
:
GetControler
()
return
Duel
.
GetLocationCount
(
1
-
tp
,
LOCATION_MZONE
)
>
-
1
return
Duel
.
GetLocationCount
(
1
-
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c91697229
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
)
and
Duel
.
GetCurrentPhase
()
==
PHASE_MAIN2
end
function
c91697229
.
filter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x4b
)
end
function
c91697229
.
descon
(
e
,
tp
)
return
not
Duel
.
IsExistingMatchingCard
(
c91697229
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
)
function
c91697229
.
descon
(
e
)
return
not
Duel
.
IsExistingMatchingCard
(
c91697229
.
filter
,
0
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
)
end
function
c91697229
.
poscon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetTurnPlayer
()
==
tp
end
function
c91697229
.
postg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
local
sg
=
Duel
.
GetMatchingGroup
(
Card
.
IsFaceup
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_POSITION
,
sg
,
s
g
:
GetCount
(),
0
,
0
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsDefencePos
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_POSITION
,
g
,
g
:
GetCount
(),
0
,
0
)
end
function
c91697229
.
posop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
sg
=
Duel
.
GetMatchingGroup
(
Card
.
IsFaceup
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
if
sg
:
GetCount
()
>
0
then
Duel
.
ChangePosition
(
sg
,
POS_FACEUP_ATTACK
,
0
,
POS_FACEUP_ATTACK
,
0
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsDefencePos
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
if
g
:
GetCount
()
>
0
then
Duel
.
ChangePosition
(
g
,
POS_FACEUP_ATTACK
)
end
end
function
c91697229
.
dcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
(
c
==
Duel
.
GetAttacker
()
or
c
==
Duel
.
GetAttackTarget
())
function
c91697229
.
damop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
ChangeBattleDamage
(
1
-
ep
,
ev
,
false
)
end
function
c91697229
.
dop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Damage
(
1
-
ep
,
ev
,
REASON_BATTLE
)
end
\ No newline at end of file
script/utility.lua
View file @
094c04e7
...
...
@@ -902,6 +902,7 @@ function Auxiliary.PConditionFilter(c,e,tp,lscale,rscale)
local
lv
=
c
:
GetLevel
()
return
(
c
:
IsLocation
(
LOCATION_HAND
)
or
(
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_PENDULUM
)))
and
lv
>
lscale
and
lv
<
rscale
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_PENDULUM
,
tp
,
false
,
false
)
and
not
c
:
IsForbidden
()
end
function
Auxiliary
.
PendCondition
()
return
function
(
e
,
c
,
og
)
...
...
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