Commit 6fc70a8b authored by salix5's avatar salix5

fix 痕喰竜ブリガンド

"Fusion Summoned" state will not be reset, it can be used in condition
function directly.
parent 105a4185
...@@ -11,13 +11,16 @@ function c34848821.initial_effect(c) ...@@ -11,13 +11,16 @@ function c34848821.initial_effect(c)
e1:SetCode(EFFECT_INDESTRUCTABLE_BATTLE) e1:SetCode(EFFECT_INDESTRUCTABLE_BATTLE)
e1:SetValue(1) e1:SetValue(1)
c:RegisterEffect(e1) c:RegisterEffect(e1)
--immune --cannot be target
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_SPSUMMON_SUCCESS) e2:SetCode(EFFECT_CANNOT_BE_EFFECT_TARGET)
e2:SetProperty(EFFECT_FLAG_CANNOT_DISABLE) e2:SetProperty(EFFECT_FLAG_IGNORE_IMMUNE+EFFECT_FLAG_SET_AVAILABLE)
e2:SetRange(LOCATION_MZONE)
e2:SetTargetRange(LOCATION_MZONE,0)
e2:SetCondition(c34848821.imcon) e2:SetCondition(c34848821.imcon)
e2:SetOperation(c34848821.imop) e2:SetTarget(c34848821.imval)
e2:SetValue(c34848821.imfilter)
c:RegisterEffect(e2) c:RegisterEffect(e2)
--to grave --to grave
local e3=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
...@@ -39,21 +42,9 @@ function c34848821.initial_effect(c) ...@@ -39,21 +42,9 @@ function c34848821.initial_effect(c)
e4:SetOperation(c34848821.thop) e4:SetOperation(c34848821.thop)
c:RegisterEffect(e4) c:RegisterEffect(e4)
end end
function c34848821.imcon(e,tp,eg,ep,ev,re,r,rp) function c34848821.imcon(e)
return e:GetHandler():IsSummonType(SUMMON_TYPE_FUSION) return e:GetHandler():IsSummonType(SUMMON_TYPE_FUSION)
end end
function c34848821.imop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_CANNOT_BE_EFFECT_TARGET)
e1:SetProperty(EFFECT_FLAG_IGNORE_IMMUNE+EFFECT_FLAG_SET_AVAILABLE)
e1:SetRange(LOCATION_MZONE)
e1:SetTargetRange(LOCATION_MZONE,0)
e1:SetTarget(c34848821.imval)
e1:SetValue(c34848821.imfilter)
c:RegisterEffect(e1)
end
function c34848821.imval(e,c) function c34848821.imval(e,c)
return c~=e:GetHandler() return c~=e:GetHandler()
end end
......
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