Commit f59f4b4b authored by salix5's avatar salix5

fix: 幻影霧剣, デモンズ・チェーン

幻影霧剣, デモンズ・チェーン
1. Add Duel.AdjustInstantly() to avoid Fluorohydride/ygopro#2200.
2. The self-destroy conditions match similar effects.
parent a5a06bb2
...@@ -66,11 +66,12 @@ function c25542642.tgop(e,tp,eg,ep,ev,re,r,rp) ...@@ -66,11 +66,12 @@ function c25542642.tgop(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if c:IsRelateToEffect(e) and tc:IsFaceup() and tc:IsRelateToEffect(e) then if c:IsRelateToEffect(e) and tc:IsFaceup() and tc:IsRelateToEffect(e) then
c:SetCardTarget(tc) c:SetCardTarget(tc)
--workaround
Duel.AdjustInstantly(c)
end end
end end
function c25542642.descon(e,tp,eg,ep,ev,re,r,rp) function c25542642.descon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if c:IsStatus(STATUS_DESTROY_CONFIRMED) then return false end
local tc=c:GetFirstCardTarget() local tc=c:GetFirstCardTarget()
return tc and eg:IsContains(tc) return tc and eg:IsContains(tc)
end end
......
...@@ -46,11 +46,12 @@ function c50078509.tgop(e,tp,eg,ep,ev,re,r,rp) ...@@ -46,11 +46,12 @@ function c50078509.tgop(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if c:IsRelateToEffect(e) and tc:IsFaceup() and tc:IsRelateToEffect(e) then if c:IsRelateToEffect(e) and tc:IsFaceup() and tc:IsRelateToEffect(e) then
c:SetCardTarget(tc) c:SetCardTarget(tc)
--workaround
Duel.AdjustInstantly(c)
end end
end end
function c50078509.descon(e,tp,eg,ep,ev,re,r,rp) function c50078509.descon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if c:IsStatus(STATUS_DESTROY_CONFIRMED) then return false end
local tc=c:GetFirstCardTarget() local tc=c:GetFirstCardTarget()
return tc and eg:IsContains(tc) and tc:IsReason(REASON_DESTROY) return tc and eg:IsContains(tc) and tc:IsReason(REASON_DESTROY)
end 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