Commit f2335d7b authored by DailyShana's avatar DailyShana

fix

parent 26fddba8
......@@ -71,9 +71,9 @@ function c11510448.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end
function c11510448.operation(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS):Filter(Card.IsRelateToEffect,nil,e)
local g1=g:Filter(Card.IsLocation,nil,LOCATION_MZONE)
local tc1=g:Filter(Card.IsLocation,nil,LOCATION_MZONE):GetFirst()
local g2=g:Filter(Card.IsLocation,nil,LOCATION_GRAVE)
if g1:GetCount()>0 and g2:GetCount()>0 then
Duel.Overlay(g1:GetFirst(),g2)
if tc1 and not tc1:IsImmuneToEffect(e) and g2:GetCount()>0 then
Duel.Overlay(tc1,g2)
end
end
......@@ -39,17 +39,28 @@ function c6430659.atop(e,tp,eg,ep,ev,re,r,rp)
e1:SetCode(EFFECT_DIRECT_ATTACK)
e1:SetReset(RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_END)
tc:RegisterEffect(e1)
tc:RegisterFlagEffect(6430659,RESET_EVENT+0x1fe0000,0,1)
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e2:SetCode(EVENT_PHASE+PHASE_BATTLE)
e2:SetRange(LOCATION_MZONE)
e2:SetCountLimit(1)
e2:SetProperty(EFFECT_FLAG_IGNORE_IMMUNE)
e2:SetReset(RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_END)
e2:SetCountLimit(1)
e2:SetLabelObject(tc)
e2:SetCondition(c6430659.tgcon)
e2:SetOperation(c6430659.tgop)
tc:RegisterEffect(e2)
Duel.RegisterEffect(e2,tp)
end
end
function c6430659.tgcon(e,tp,eg,ep,ev,re,r,rp)
local tc=e:GetLabelObject()
if tc:GetFlagEffect(6430659)~=0 then
return true
else
e:Reset()
return false
end
end
function c6430659.tgop(e,tp,eg,ep,ev,re,r,rp)
Duel.SendtoGrave(e:GetHandler(),REASON_EFFECT)
local tc=e:GetLabelObject()
Duel.SendtoGrave(tc,REASON_EFFECT)
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