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
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
REIKAI
ygopro
Commits
298160d5
Commit
298160d5
authored
May 18, 2015
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
44ac56b2
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
18 deletions
+11
-18
ocgcore/effect.cpp
ocgcore/effect.cpp
+1
-1
ocgcore/effect.h
ocgcore/effect.h
+1
-0
script/c43175858.lua
script/c43175858.lua
+8
-17
script/constant.lua
script/constant.lua
+1
-0
No files found.
ocgcore/effect.cpp
View file @
298160d5
...
...
@@ -96,7 +96,7 @@ int32 effect::is_available() {
return
FALSE
;
if
(
handler
->
is_status
(
STATUS_BATTLE_DESTROYED
)
&&
!
(
flag
&
EFFECT_FLAG_AVAILABLE_BD
))
return
FALSE
;
if
(
!
(
handler
->
get_status
(
STATUS_EFFECT_ENABLED
)
))
if
(
!
handler
->
get_status
(
STATUS_EFFECT_ENABLED
)
&&
!
(
flag
&
EFFECT_FLAG_IMMEDIATELY_APPLY
))
return
FALSE
;
if
(
!
in_range
(
handler
->
current
.
location
,
handler
->
current
.
sequence
))
return
FALSE
;
...
...
ocgcore/effect.h
View file @
298160d5
...
...
@@ -171,6 +171,7 @@ public:
#define EFFECT_FLAG_NAGA 0x10000000 //
#define EFFECT_FLAG_COF 0x20000000 //
#define EFFECT_FLAG_CVAL_CHECK 0x40000000 //
#define EFFECT_FLAG_IMMEDIATELY_APPLY 0x80000000 //
//========== Codes ==========
#define EFFECT_IMMUNE_EFFECT 1 //
#define EFFECT_DISABLE 2 //
...
...
script/c43175858.lua
View file @
298160d5
...
...
@@ -18,18 +18,13 @@ function c43175858.initial_effect(c)
c
:
RegisterEffect
(
e2
)
--cannot be target
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetCode
(
43175858
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetCode
(
EFFECT_CANNOT_SELECT_EFFECT_TARGET
)
e3
:
SetProperty
(
EFFECT_FLAG_IMMEDIATELY_APPLY
)
e3
:
SetRange
(
LOCATION_FZONE
)
e3
:
SetTargetRange
(
0
,
0xff
)
e3
:
SetValue
(
c43175858
.
etarget
)
c
:
RegisterEffect
(
e3
)
if
not
c43175858
.
global_check
then
c43175858
.
global_check
=
true
local
ge1
=
Effect
.
CreateEffect
(
c
)
ge1
:
SetType
(
EFFECT_TYPE_FIELD
)
ge1
:
SetCode
(
EFFECT_CANNOT_SELECT_EFFECT_TARGET
)
ge1
:
SetProperty
(
EFFECT_FLAG_IGNORE_RANGE
)
ge1
:
SetValue
(
c43175858
.
etarget
)
Duel
.
RegisterEffect
(
ge1
,
0
)
end
--destroy replace
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
...
...
@@ -54,10 +49,7 @@ function c43175858.activate(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Remove
(
g
,
POS_FACEDOWN
,
REASON_EFFECT
)
end
function
c43175858
.
etarget
(
e
,
re
,
c
)
local
rp
=
re
:
GetHandlerPlayer
()
local
fc
=
Duel
.
GetFieldCard
(
1
-
rp
,
LOCATION_SZONE
,
5
)
return
fc
and
fc
:
IsFaceup
()
and
fc
:
IsHasEffect
(
43175858
)
and
c
:
IsFaceup
()
and
c
:
IsControler
(
1
-
rp
)
and
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsType
(
TYPE_TOON
)
return
c
:
IsFaceup
()
and
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsType
(
TYPE_TOON
)
end
function
c43175858
.
repfilter
(
c
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsControler
(
tp
)
and
c
:
IsLocation
(
LOCATION_MZONE
)
...
...
@@ -68,9 +60,8 @@ function c43175858.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
local
g
=
Duel
.
GetDecktopGroup
(
tp
,
ct
)
if
chk
==
0
then
return
g
:
IsExists
(
Card
.
IsAbleToRemove
,
ct
,
nil
)
end
if
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
43175858
,
0
))
then
local
dg
=
Duel
.
GetDecktopGroup
(
tp
,
ct
)
Duel
.
DisableShuffleCheck
()
Duel
.
Remove
(
d
g
,
POS_FACEDOWN
,
REASON_EFFECT
)
Duel
.
Remove
(
g
,
POS_FACEDOWN
,
REASON_EFFECT
)
return
true
else
return
false
end
end
...
...
script/constant.lua
View file @
298160d5
...
...
@@ -266,6 +266,7 @@ EFFECT_FLAG_CHAIN_UNIQUE =0x8000000 --同一组连锁只能发动一次
EFFECT_FLAG_NAGA
=
0x10000000
--神卡纳迦!
EFFECT_FLAG_COF
=
0x20000000
--邪恶的仪式
EFFECT_FLAG_CVAL_CHECK
=
0x40000000
--以卡为COST的诱发效果需要使用
EFFECT_FLAG_IMMEDIATELY_APPLY
=
0x80000000
--
--========== Codes ========== --对永续性效果表示效果类型 EFFECT开头,对诱发型效果表示触发效果的事件/时点 EVENT开头
EFFECT_IMMUNE_EFFECT
=
1
--效果免疫
EFFECT_DISABLE
=
2
--效果无效(技能抽取)
...
...
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