Commit 46a89ec3 authored by POLYMER's avatar POLYMER

fix

parent d4557247
...@@ -418,12 +418,13 @@ function cm.desop(e,tp,eg,ep,ev,re,r,rp) ...@@ -418,12 +418,13 @@ function cm.desop(e,tp,eg,ep,ev,re,r,rp)
for tc in aux.Next(rg) do for tc in aux.Next(rg) do
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_CANNOT_TRIGGER) if tc:IsLocation(LOCATION_SZONE) then
e1:SetCode(EFFECT_CANNOT_TRIGGER)
else
e1:SetCode(EFFECT_CANNOT_FLIP_SUMMON)
end
e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
tc:RegisterEffect(e1) tc:RegisterEffect(e1)
local e2=e1:Clone()
e2:SetCode(EFFECT_CANNOT_FLIP_SUMMON)
tc:RegisterEffect(e2)
end end
end end
end end
......
...@@ -271,7 +271,7 @@ function cm.cpop(e,tp,eg,ep,ev,re,r,rp) ...@@ -271,7 +271,7 @@ function cm.cpop(e,tp,eg,ep,ev,re,r,rp)
local tc1=g:Filter(Card.IsLocation,nil,LOCATION_MZONE):GetFirst() local tc1=g:Filter(Card.IsLocation,nil,LOCATION_MZONE):GetFirst()
local tc2=g:Filter(Card.IsLocation,nil,LOCATION_GRAVE):GetFirst() local tc2=g:Filter(Card.IsLocation,nil,LOCATION_GRAVE):GetFirst()
if c:IsRelateToEffect(e) and tc1 and tc1:IsFaceup() and tc2 then if c:IsRelateToEffect(e) and tc1 and tc1:IsFaceup() and tc2 then
local code=tc2:GetOriginalCodeRule() local code=tc2:GetOriginalCode()
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE) e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
...@@ -284,7 +284,7 @@ function cm.cpop(e,tp,eg,ep,ev,re,r,rp) ...@@ -284,7 +284,7 @@ function cm.cpop(e,tp,eg,ep,ev,re,r,rp)
e1:SetValue(code) e1:SetValue(code)
tc1:RegisterEffect(e1) tc1:RegisterEffect(e1)
--local c1,c2=tc1:GetCode() Debug.Message(c2) --local c1,c2=tc1:GetCode() Debug.Message(c2)
if tc1:GetFlagEffect(0xffffff+code+m)==0 then if tc1:GetOriginalCode()~=code and tc1:GetFlagEffect(0xffffff+code+m)==0 then
tc1:CopyEffect(code,RESET_EVENT+RESETS_STANDARD) tc1:CopyEffect(code,RESET_EVENT+RESETS_STANDARD)
tc1:RegisterFlagEffect(0xffffff+code+m,RESET_EVENT+RESETS_STANDARD,0,1) tc1:RegisterFlagEffect(0xffffff+code+m,RESET_EVENT+RESETS_STANDARD,0,1)
end end
......
--葛饰北斋
function c22021860.initial_effect(c)
--pendulum summon
aux.EnablePendulumAttribute(c)
--cannot remove
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_CANNOT_REMOVE)
e1:SetRange(LOCATION_PZONE)
e1:SetTargetRange(LOCATION_GRAVE,LOCATION_GRAVE)
e1:SetCondition(c22021860.con1)
c:RegisterEffect(e1)
--cannot ACTIVATE
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD)
e2:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e2:SetCode(EFFECT_CANNOT_ACTIVATE)
e2:SetRange(LOCATION_PZONE)
e2:SetTargetRange(1,1)
e2:SetCondition(c22021860.con2)
e2:SetValue(c22021860.aclimit)
c:RegisterEffect(e2)
--cannot spsummon
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_FIELD)
e3:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON)
e3:SetRange(LOCATION_PZONE)
e3:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e3:SetTargetRange(1,1)
e3:SetCondition(c22021860.con3)
e3:SetTarget(c22021860.splimit)
c:RegisterEffect(e3)
end
function c22021860.aclimit(e,re,tp)
return re:GetActivateLocation()==LOCATION_GRAVE
end
function c22021860.splimit(e,c)
return c:IsLocation(LOCATION_GRAVE)
end
function c22021860.cfilter1(c)
return c:IsFaceup() and c:IsType(TYPE_RITUAL)
end
function c22021860.con1(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(c22021860.cfilter1,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil)
end
function c22021860.cfilter2(c)
return c:IsFaceup() and c:IsType(TYPE_FUSION)
end
function c22021860.con2(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(c22021860.cfilter2,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil)
end
function c22021860.cfilter3(c)
return c:IsFaceup() and c:IsType(TYPE_LINK)
end
function c22021860.con3(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(c22021860.cfilter3,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil)
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