Commit cd3501df authored by wind2009's avatar wind2009

Fix 糾罪巧-Astaγ.PIXIEA

parent 0114c3f1
--糾罪巧-Astaγ.PIXIEA --糾罪巧Astaγ.PIXIEA
local s,id,o=GetID() local s,id,o=GetID()
function s.initial_effect(c) function s.initial_effect(c)
--pendulum summon --pendulum summon
...@@ -54,16 +54,17 @@ function s.initial_effect(c) ...@@ -54,16 +54,17 @@ function s.initial_effect(c)
e4:SetProperty(EFFECT_FLAG_CANNOT_DISABLE) e4:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e4:SetOperation(s.flipop) e4:SetOperation(s.flipop)
c:RegisterEffect(e4) c:RegisterEffect(e4)
--damage --cannot be targeted
local e5=Effect.CreateEffect(c) local e5=Effect.CreateEffect(c)
e5:SetType(EFFECT_TYPE_FIELD) e5:SetType(EFFECT_TYPE_FIELD)
e5:SetCode(EFFECT_CANNOT_BE_EFFECT_TARGET) e5:SetCode(EFFECT_CANNOT_BE_EFFECT_TARGET)
e5:SetProperty(EFFECT_FLAG_SET_AVAILABLE) e5:SetProperty(EFFECT_FLAG_SET_AVAILABLE)
e5:SetRange(LOCATION_MZONE) e5:SetRange(LOCATION_MZONE)
e5:SetTargetRange(LOCATION_ONFIELD+LOCATION_GRAVE,LOCATION_ONFIELD+LOCATION_GRAVE) e5:SetTargetRange(LOCATION_ONFIELD+LOCATION_GRAVE,LOCATION_ONFIELD+LOCATION_GRAVE)
e5:SetLabelObject(c)
e5:SetCondition(s.effcon) e5:SetCondition(s.effcon)
e5:SetValue(aux.tgoval) e5:SetValue(aux.tgoval)
c:RegisterEffect(e5) Duel.RegisterEffect(e5,0)
Duel.AddCustomActivityCounter(id,ACTIVITY_SPSUMMON,s.counterfilter) Duel.AddCustomActivityCounter(id,ACTIVITY_SPSUMMON,s.counterfilter)
end end
function s.counterfilter(c) function s.counterfilter(c)
...@@ -160,9 +161,18 @@ function s.disop(e,tp,eg,ep,ev,re,r,rp) ...@@ -160,9 +161,18 @@ function s.disop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function s.flipop(e,tp,eg,ep,ev,re,r,rp) function s.flipop(e,tp,eg,ep,ev,re,r,rp)
e:GetHandler():RegisterFlagEffect(id,RESET_EVENT+RESETS_STANDARD,0,1) e:GetHandler():RegisterFlagEffect(id,RESET_EVENT+RESETS_STANDARD,EFFECT_FLAG_CLIENT_HINT,1,0,aux.Stringid(id,4))
end
function s.efffilter(c,ec)
return c==ec and c:IsFaceup() and c:GetFlagEffect(id)>0 and not c:IsStatus(STATUS_BATTLE_DESTROYED) and not c:IsDisabled()
end end
function s.effcon(e) function s.effcon(e)
local c=e:GetHandler() local c=e:GetLabelObject()
return c:GetFlagEffect(id)>0 local p=c:GetControler()
return Duel.IsExistingMatchingCard(s.efffilter,p,LOCATION_MZONE,0,1,nil,c)
end
function s.effval(e,re,rp)
local c=e:GetLabelObject()
local p=c:GetControler()
return rp==1-p
end end
\ No newline at end of file
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