Commit d2e30957 authored by POLYMER's avatar POLYMER

fix

parent 9e10a32e
......@@ -140,7 +140,7 @@ function c11533718.negcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.Release(e:GetHandler(),REASON_COST)
end
--function c11533718.negcfilter(c)
-- return (c:IsFaceup() or c:IsLocation(LOCATION_HAND)) and c:IsSetCard(0xb4) and c:IsReleasable()
-- return (c:IsFaceup() or c:IsLocation(LOCATION_HAND)) and c:IsSetCard(0xb4) and c:IsReleasable()
--end
function c11533718.rrfil(c,tp)
local re=Duel.IsPlayerAffectedByEffect(tp,EFFECT_CANNOT_RELEASE)
......@@ -148,7 +148,7 @@ function c11533718.rrfil(c,tp)
if re then
val=re:GetValue()
end
return (c:IsFaceup() or c:IsLocation(LOCATION_HAND)) and c:IsSetCard(0xb4) and (c:IsReleasable() or (c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsLocation(LOCATION_HAND) and (val==nil or val(re,c)~=true)))
return c:IsSetCard(0xb4) and (c:IsReleasable() or (c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsLocation(LOCATION_HAND) and (val==nil or val(re,c)~=true)))
end
function c11533718.negtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c11533718.rrfil,tp,LOCATION_ONFIELD+LOCATION_HAND,0,1,e:GetHandler()) end
......
......@@ -20,7 +20,7 @@ function cm.initial_effect(c)
e2:SetType(EFFECT_TYPE_FIELD)
e2:SetRange(LOCATION_MZONE)
e2:SetTargetRange(0,LOCATION_MZONE)
e2:SetCode(EFFECT_UPDATE_ATTACK)
e2:SetCode(EFFECT_SET_ATTACK)
e2:SetCondition(c11561050.atkcon)
e2:SetValue(0)
c:RegisterEffect(e2)
......
......@@ -144,7 +144,7 @@ function c22348050.atkfilter(c)
end
function c22348050.atkop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local g=Duel.GetMatchingGroup(c22348050.atkfilter,tp,LOCATION_MZONE,0,nil)
local g=Duel.GetMatchingGroup(c22348050.atkfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil)
local tc=g:GetFirst()
while tc do
local e6=Effect.CreateEffect(c)
......@@ -153,6 +153,9 @@ function c22348050.atkop(e,tp,eg,ep,ev,re,r,rp)
e6:SetReset(RESET_EVENT+RESETS_STANDARD)
e6:SetValue(300)
tc:RegisterEffect(e6)
local e7=e6:Clone()
e7:SetCode(EFFECT_UPDATE_DEFENSE)
tc:RegisterEffect(e7)
tc=g:GetNext()
end
end
......
......@@ -136,7 +136,7 @@ function c22348284.desop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_OPERATECARD)
Duel.BreakEffect()
if e:GetLabel()==1 then Duel.RegisterFlagEffect(tp,15248873,RESET_CHAIN,0,1) end
local g=Duel.SelectMatchingCard(tp,c22348284.filter,tp,LOCATION_DECK,0,1,1,nil,tp)
local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(c22348284.filter),tp,LOCATION_DECK+LOCATION_GRAVE,0,1,1,nil,tp)
Duel.ResetFlagEffect(tp,15248873)
local tc=g:GetFirst()
if tc then
......
......@@ -2,10 +2,10 @@
local m=40010782
local cm=_G["c"..m]
function cm.initial_effect(c)
aux.AddCodeList(c,40010766)
aux.AddCodeList(c,40010766,40010774)
--fusion material
c:EnableReviveLimit()
aux.AddFusionProcCodeFun(c,40010774,cm.ffilter,1,true,true)
aux.AddFusionProcCodeFun(c,40010766,cm.ffilter,1,true,true)
--Attribute Dark
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
......
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