Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-pre-data
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
List
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-pre-data
Commits
5b8cac94
Commit
5b8cac94
authored
Aug 13, 2018
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
4015bf2e
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
47 additions
and
52 deletions
+47
-52
script/c100243005.lua
script/c100243005.lua
+6
-15
script/c100243006.lua
script/c100243006.lua
+1
-0
script/c100243007.lua
script/c100243007.lua
+32
-30
script/c100410004.lua
script/c100410004.lua
+1
-1
script/c100410006.lua
script/c100410006.lua
+1
-1
script/c100410007.lua
script/c100410007.lua
+2
-2
script/c100410028.lua
script/c100410028.lua
+4
-3
No files found.
script/c100243005.lua
View file @
5b8cac94
...
...
@@ -42,7 +42,8 @@ function c100243005.initial_effect(c)
c
:
RegisterEffect
(
e5
)
--damage reduce
local
e6
=
Effect
.
CreateEffect
(
c
)
e6
:
SetType
(
EFFECT_TYPE_EQUIP
+
EFFECT_TYPE_CONTINUOUS
)
e6
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_FIELD
)
e6
:
SetRange
(
LOCATION_SZONE
)
e6
:
SetCode
(
EVENT_PRE_BATTLE_DAMAGE
)
e6
:
SetCondition
(
c100243005
.
rdcon
)
e6
:
SetOperation
(
c100243005
.
rdop
)
...
...
@@ -96,22 +97,12 @@ function c100243005.repval(e,re,r,rp)
return
bit
.
band
(
r
,
REASON_BATTLE
)
~=
0
or
bit
.
band
(
r
,
REASON_EFFECT
)
~=
0
end
function
c100243005
.
rdcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
ep
~=
tp
and
Duel
.
GetAttackTarget
()
==
nil
and
e
:
GetHandler
():
IsHasEffect
(
EFFECT_DIRECT_ATTACK
)
and
Duel
.
IsExistingMatchingCard
(
aux
.
NOT
(
Card
.
IsHasEffect
),
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
,
EFFECT_IGNORE_BATTLE_TARGET
)
local
c
=
e
:
GetHandler
():
GetEquipTarget
()
return
ep
~=
tp
and
c
==
Duel
.
GetAttacker
()
and
Duel
.
GetAttackTarget
()
==
nil
and
c
:
GetEffectCount
(
EFFECT_DIRECT_ATTACK
)
<
2
and
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_MZONE
)
>
0
end
function
c100243005
.
rdop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
effs
=
{
c
:
GetCardEffect
(
EFFECT_DIRECT_ATTACK
)}
local
eg
=
Group
.
CreateGroup
()
for
_
,
eff
in
ipairs
(
effs
)
do
eg
:
AddCard
(
eff
:
GetOwner
())
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_EFFECT
)
local
ec
=
#
eg
==
1
and
eg
:
GetFirst
()
or
eg
:
Select
(
tp
,
1
,
1
,
nil
):
GetFirst
()
if
c
==
ec
then
Duel
.
ChangeBattleDamage
(
ep
,
Duel
.
GetBattleDamage
(
ep
)
/
2
)
end
Duel
.
ChangeBattleDamage
(
ep
,
ev
/
2
)
end
function
c100243005
.
eqlimit
(
e
,
c
)
return
c
:
IsRace
(
RACE_FAIRY
)
or
e
:
GetHandler
():
GetEquipTarget
()
==
c
...
...
script/c100243006.lua
View file @
5b8cac94
...
...
@@ -15,6 +15,7 @@ function c100243006.initial_effect(c)
e2
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
e2
:
SetType
(
EFFECT_TYPE_IGNITION
)
e2
:
SetRange
(
LOCATION_GRAVE
)
e2
:
SetCountLimit
(
1
,
100243006
)
e2
:
SetCost
(
aux
.
bfgcost
)
e2
:
SetTarget
(
c100243006
.
thtg
)
e2
:
SetOperation
(
c100243006
.
thop
)
...
...
script/c100243007.lua
View file @
5b8cac94
...
...
@@ -27,37 +27,39 @@ function c100243007.target(e,tp,eg,ep,ev,re,r,rp,chk)
end
function
c100243007
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
and
Duel
.
SendtoGrave
(
c
,
REASON_EFFECT
)
==
1
and
c
:
IsLocation
(
LOCATION_GRAVE
)
then
Duel
.
SkipPhase
(
tp
,
PHASE_BATTLE
,
RESET_PHASE
+
PHASE_END
,
1
)
Duel
.
SkipPhase
(
tp
,
PHASE_MAIN2
,
RESET_PHASE
+
PHASE_END
,
1
)
Duel
.
SkipPhase
(
tp
,
PHASE_END
,
RESET_PHASE
+
PHASE_END
,
1
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetCode
(
EFFECT_SKIP_TURN
)
e1
:
SetTargetRange
(
0
,
1
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
+
RESET_OPPO_TURN
)
Duel
.
RegisterEffect
(
e1
,
tp
)
Duel
.
SkipPhase
(
tp
,
PHASE_DRAW
,
RESET_PHASE
+
PHASE_END
,
2
)
Duel
.
SkipPhase
(
tp
,
PHASE_STANDBY
,
RESET_PHASE
+
PHASE_END
,
2
)
Duel
.
SkipPhase
(
tp
,
PHASE_MAIN1
,
RESET_PHASE
+
PHASE_END
,
2
)
local
e2
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e2
:
SetCode
(
EFFECT_CANNOT_EP
)
e2
:
SetTargetRange
(
1
,
0
)
e2
:
SetReset
(
RESET_PHASE
+
PHASE_MAIN1
+
RESET_SELF_TURN
)
Duel
.
RegisterEffect
(
e2
,
tp
)
--
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
+
EFFECT_FLAG_OATH
)
e3
:
SetCode
(
EFFECT_CANNOT_ACTIVATE
)
e3
:
SetTargetRange
(
1
,
0
)
e3
:
SetValue
(
c100243007
.
aclimit
)
e3
:
SetReset
(
RESET_PHASE
+
PHASE_END
,
3
)
Duel
.
RegisterEffect
(
e3
,
tp
)
if
c
:
IsRelateToEffect
(
e
)
then
Duel
.
SendtoGrave
(
c
,
REASON_EFFECT
)
end
--
Duel
.
SkipPhase
(
tp
,
PHASE_BATTLE
,
RESET_PHASE
+
PHASE_END
,
1
)
Duel
.
SkipPhase
(
tp
,
PHASE_MAIN2
,
RESET_PHASE
+
PHASE_END
,
1
)
Duel
.
SkipPhase
(
tp
,
PHASE_END
,
RESET_PHASE
+
PHASE_END
,
1
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetCode
(
EFFECT_SKIP_TURN
)
e1
:
SetTargetRange
(
0
,
1
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
+
RESET_OPPO_TURN
)
Duel
.
RegisterEffect
(
e1
,
tp
)
Duel
.
SkipPhase
(
tp
,
PHASE_DRAW
,
RESET_PHASE
+
PHASE_END
,
2
)
Duel
.
SkipPhase
(
tp
,
PHASE_STANDBY
,
RESET_PHASE
+
PHASE_END
,
2
)
Duel
.
SkipPhase
(
tp
,
PHASE_MAIN1
,
RESET_PHASE
+
PHASE_END
,
2
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e2
:
SetCode
(
EFFECT_CANNOT_EP
)
e2
:
SetTargetRange
(
1
,
0
)
e2
:
SetReset
(
RESET_PHASE
+
PHASE_MAIN1
+
RESET_SELF_TURN
)
Duel
.
RegisterEffect
(
e2
,
tp
)
--
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
+
EFFECT_FLAG_OATH
)
e3
:
SetCode
(
EFFECT_CANNOT_ACTIVATE
)
e3
:
SetTargetRange
(
1
,
0
)
e3
:
SetValue
(
c100243007
.
aclimit
)
e3
:
SetReset
(
RESET_PHASE
+
PHASE_END
,
3
)
Duel
.
RegisterEffect
(
e3
,
tp
)
end
function
c100243007
.
aclimit
(
e
,
re
,
tp
)
return
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
re
:
GetHandler
():
IsCode
(
100243007
)
...
...
script/c100410004.lua
View file @
5b8cac94
...
...
@@ -72,7 +72,7 @@ function c100410004.descon(e,tp,eg,ep,ev,re,r,rp)
return
e
:
GetLabelObject
():
GetLabel
()
~=
Duel
.
GetTurnCount
()
and
tp
==
Duel
.
GetTurnPlayer
()
and
c
:
GetFlagEffect
(
100410004
)
>
0
end
function
c100410004
.
desfilter
(
c
)
return
c
:
IsSetCard
(
0x11f
)
and
c
:
IsType
(
TYPE_MONSTER
)
return
c
:
IsSetCard
(
0x11f
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
not
c
:
IsCode
(
100410004
)
end
function
c100410004
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
...
...
script/c100410006.lua
View file @
5b8cac94
...
...
@@ -55,7 +55,7 @@ function c100410006.desop(e,tp,eg,ep,ev,re,r,rp)
end
function
c100410006
.
spr
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsReason
(
REASON_BATTLE
+
REASON_EFFECT
)
and
c
:
IsReason
(
REASON_DESTROY
)
then
return
end
if
not
(
c
:
IsReason
(
REASON_BATTLE
+
REASON_EFFECT
)
and
c
:
IsReason
(
REASON_DESTROY
)
)
then
return
end
if
Duel
.
GetTurnPlayer
()
==
tp
and
Duel
.
GetCurrentPhase
()
==
PHASE_STANDBY
then
e
:
SetLabel
(
Duel
.
GetTurnCount
())
c
:
RegisterFlagEffect
(
100410006
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_STANDBY
+
RESET_SELF_TURN
,
0
,
2
)
...
...
script/c100410007.lua
View file @
5b8cac94
...
...
@@ -7,8 +7,8 @@ function c100410007.initial_effect(c)
--activate
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
100410007
,
0
))
e1
:
SetType
(
EFFECT_TYPE_
SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
Set
Code
(
EVENT_SPSUMMON_SUCCESS
)
e1
:
SetType
(
EFFECT_TYPE_
IGNITION
)
e1
:
Set
Range
(
LOCATION_MZONE
)
e1
:
SetCountLimit
(
1
,
100410007
)
e1
:
SetCondition
(
c100410007
.
condition
)
e1
:
SetTarget
(
c100410007
.
target
)
...
...
script/c100410028.lua
View file @
5b8cac94
...
...
@@ -21,12 +21,13 @@ end
function
c100410028
.
counterfilter
(
c
)
return
c
:
GetSummonLocation
()
~=
LOCATION_EXTRA
or
c
:
IsSetCard
(
0x121
)
end
function
c100410028
.
cfilter
(
c
,
tp
)
function
c100410028
.
cfilter
(
c
,
tp
,
rp
)
return
c
:
IsReason
(
REASON_BATTLE
+
REASON_EFFECT
)
and
c
:
IsSetCard
(
0x121
)
and
not
c
:
IsCode
(
100410028
)
and
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
c
:
GetPreviousControler
()
==
tp
and
rp
==
1
-
tp
and
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
c
:
GetPreviousControler
()
==
tp
and
(
c
:
IsReason
(
REASON_BATTLE
)
or
(
rp
==
1
-
tp
and
c
:
IsReason
(
REASON_EFFECT
)))
end
function
c100410028
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
c100410028
.
cfilter
,
1
,
nil
,
tp
)
return
eg
:
IsExists
(
c100410028
.
cfilter
,
1
,
nil
,
tp
,
rp
)
end
function
c100410028
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetCustomActivityCount
(
100410028
,
tp
,
ACTIVITY_SPSUMMON
)
==
0
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