Commit e2506c91 authored by DailyShana's avatar DailyShana

fix

parent 89a8c44a
...@@ -8,7 +8,7 @@ function c15661378.initial_effect(c) ...@@ -8,7 +8,7 @@ function c15661378.initial_effect(c)
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE) e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e1:SetCode(EFFECT_SPSUMMON_CONDITION) e1:SetCode(EFFECT_SPSUMMON_CONDITION)
e1:SetValue(aux.fuslimit) e1:SetValue(c15661378.splimit)
c:RegisterEffect(e1) c:RegisterEffect(e1)
--special summon rule --special summon rule
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
...@@ -35,6 +35,10 @@ end ...@@ -35,6 +35,10 @@ end
function c15661378.ffilter(c,fc,sub,mg,sg) function c15661378.ffilter(c,fc,sub,mg,sg)
return c:IsControler(fc:GetControler()) and c:IsLocation(LOCATION_MZONE+LOCATION_HAND) and (not sg or not sg:IsExists(Card.IsFusionCode,1,c,c:GetFusionCode())) return c:IsControler(fc:GetControler()) and c:IsLocation(LOCATION_MZONE+LOCATION_HAND) and (not sg or not sg:IsExists(Card.IsFusionCode,1,c,c:GetFusionCode()))
end end
function c15661378.splimit(e,se,sp,st)
return not e:GetHandler():IsLocation(LOCATION_EXTRA)
or st&SUMMON_TYPE_FUSION==SUMMON_TYPE_FUSION
end
function c15661378.cfilter(c,fc) function c15661378.cfilter(c,fc)
return c:IsAbleToRemoveAsCost() and c:IsCanBeFusionMaterial(fc) return c:IsAbleToRemoveAsCost() and c:IsCanBeFusionMaterial(fc)
end end
......
...@@ -37,17 +37,21 @@ end ...@@ -37,17 +37,21 @@ end
function c17722185.operation(e,tp,eg,ep,ev,re,r,rp) function c17722185.operation(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
local ct=e:GetLabel() c:RegisterFlagEffect(17722185,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,0,1)
local flag=e:GetLabel()
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD) e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_DISABLE) e1:SetCode(EFFECT_DISABLE)
e1:SetRange(LOCATION_SZONE)
e1:SetTargetRange(LOCATION_MZONE,LOCATION_MZONE) e1:SetTargetRange(LOCATION_MZONE,LOCATION_MZONE)
e1:SetTarget(c17722185.distg) e1:SetTarget(c17722185.distg)
e1:SetLabel(ct) e1:SetCondition(c17722185.discon)
e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) e1:SetLabel(flag)
c:RegisterEffect(e1) e1:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e1,tp)
end end
function c17722185.distg(e,c) function c17722185.distg(e,c)
return c:IsType(e:GetLabel()) return c:IsType(e:GetLabel())
end end
function c17722185.discon(e)
return e:GetHandler():GetFlagEffect(17722185)~=0
end
...@@ -73,8 +73,8 @@ function c80101899.aclimit2(e,tp,eg,ep,ev,re,r,rp) ...@@ -73,8 +73,8 @@ function c80101899.aclimit2(e,tp,eg,ep,ev,re,r,rp)
Duel.ResetFlagEffect(tp,80101899) Duel.ResetFlagEffect(tp,80101899)
end end
function c80101899.actcon(e) function c80101899.actcon(e)
return Duel.GetFlagEffect(tp,80101899)~=0 return Duel.GetFlagEffect(e:GetHandlerPlayer(),80101899)~=0
end end
function c80101899.aclimit3(e,re,tp) function c80101899.aclimit3(e,re,tp)
return re:GetHandler():IsType(TYPE_TRAP) and re:IsHasType(EFFECT_TYPE_ACTIVATE) return re:IsActiveType(TYPE_TRAP) and re:IsHasType(EFFECT_TYPE_ACTIVATE)
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