Commit 5109d2c6 authored by salix5's avatar salix5

fix: 海晶乙女の闘海

91027843/海晶乙女の闘海
Revert: str1 is preserved
The global check is moved to the script of 67712104/海晶乙女クリスタルハート.
It is executed even if there is no 海晶乙女の闘海 in the deck.
parent 421c7044
...@@ -33,6 +33,22 @@ function c67712104.initial_effect(c) ...@@ -33,6 +33,22 @@ function c67712104.initial_effect(c)
e3:SetTarget(c67712104.indtg) e3:SetTarget(c67712104.indtg)
e3:SetOperation(c67712104.indop) e3:SetOperation(c67712104.indop)
c:RegisterEffect(e3) c:RegisterEffect(e3)
--global chk of 91027843
if not c67712104.global_check then
c67712104.global_check=true
local ge1=Effect.CreateEffect(c)
ge1:SetType(EFFECT_TYPE_FIELD)
ge1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_SET_AVAILABLE+EFFECT_FLAG_IGNORE_RANGE)
ge1:SetCode(EFFECT_MATERIAL_CHECK)
ge1:SetValue(c67712104.valcheck)
Duel.RegisterEffect(ge1,0)
end
end
function c67712104.valcheck(e,c)
local g=c:GetMaterial()
if g:IsExists(Card.IsLinkCode,1,nil,67712104) then
c:RegisterFlagEffect(91027843,RESET_EVENT+0x4fe0000,EFFECT_FLAG_CLIENT_HINT,1,0,aux.Stringid(91027843,0))
end
end end
function c67712104.immcon1(e) function c67712104.immcon1(e)
return e:GetHandler():GetSequence()>4 return e:GetHandler():GetSequence()>4
......
...@@ -34,21 +34,6 @@ function c91027843.initial_effect(c) ...@@ -34,21 +34,6 @@ function c91027843.initial_effect(c)
e4:SetTarget(c91027843.eqtg) e4:SetTarget(c91027843.eqtg)
e4:SetOperation(c91027843.eqop) e4:SetOperation(c91027843.eqop)
c:RegisterEffect(e4) c:RegisterEffect(e4)
if not c91027843.global_check then
c91027843.global_check=true
local ge1=Effect.CreateEffect(c)
ge1:SetType(EFFECT_TYPE_FIELD)
ge1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_SET_AVAILABLE+EFFECT_FLAG_IGNORE_RANGE)
ge1:SetCode(EFFECT_MATERIAL_CHECK)
ge1:SetValue(c91027843.valcheck)
Duel.RegisterEffect(ge1,0)
end
end
function c91027843.valcheck(e,c)
local g=c:GetMaterial()
if g:IsExists(Card.IsLinkCode,1,nil,67712104) then
c:RegisterFlagEffect(91027843,RESET_EVENT+0x4fe0000,0,1)
end
end end
function c91027843.atkval(e,c) function c91027843.atkval(e,c)
return 200+c:GetEquipGroup():FilterCount(Card.IsSetCard,nil,0x12b)*600 return 200+c:GetEquipGroup():FilterCount(Card.IsSetCard,nil,0x12b)*600
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment