Commit 9345cc53 authored by DailyShana's avatar DailyShana Committed by GitHub

fix: 幻影霧剣, デモンズ・チェーン (#1195)

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