Commit 9d99205f authored by nanahira's avatar nanahira

fix xiaohei

parent 15a380d0
...@@ -36,14 +36,14 @@ end ...@@ -36,14 +36,14 @@ end
function c12031011.disop(e,tp,eg,ep,ev,re,r,rp) function c12031011.disop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local tt=c:GetOverlayCount() local tt=c:GetOverlayCount()
if Duel.GetFlagEffect(tp,12031011)==0 then if c:GetFlagEffect(12031011)==0 then
if e:GetHandler():IsType(TYPE_XYZ) then if e:GetHandler():IsType(TYPE_XYZ) then
re:GetHandler():CancelToGrave() re:GetHandler():CancelToGrave()
Duel.Overlay(c,Group.FromCards(re:GetHandler())) Duel.Overlay(c,Group.FromCards(re:GetHandler()))
Duel.BreakEffect() Duel.BreakEffect()
local ff=c:GetOverlayCount() local ff=c:GetOverlayCount()
if ff>tt then if ff>tt then
Duel.RegisterFlagEffect(tp,12031011,RESET_PHASE+PHASE_END,0,1) --Duel.RegisterFlagEffect(tp,12031011,RESET_PHASE+PHASE_END,0,1)
c:RegisterFlagEffect(12031011,RESET_PHASE+PHASE_END,EFFECT_FLAG_CLIENT_HINT,1,0,aux.Stringid(12031011,4)) c:RegisterFlagEffect(12031011,RESET_PHASE+PHASE_END,EFFECT_FLAG_CLIENT_HINT,1,0,aux.Stringid(12031011,4))
else else
Duel.NegateEffect(ev) Duel.NegateEffect(ev)
......
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