Commit 6dfda75d authored by a597449807's avatar a597449807 Committed by GitHub

Fix 始祖の守護者ティラス (#2864)

修复②效果在这张卡没有进行战斗的战斗阶段结束时仍会发动的问题。(このカードが戦闘を行ったバトルフェイズ終了時に1度、必ず発動する効果です)

https://www.db.yugioh-card.com/yugiohdb/faq_search.action?ope=4&cid=9661&request_locale=ja
parent 5064145a
...@@ -21,6 +21,7 @@ function c31386180.initial_effect(c) ...@@ -21,6 +21,7 @@ function c31386180.initial_effect(c)
e2:SetCode(EVENT_PHASE+PHASE_BATTLE) e2:SetCode(EVENT_PHASE+PHASE_BATTLE)
e2:SetCountLimit(1) e2:SetCountLimit(1)
e2:SetRange(LOCATION_MZONE) e2:SetRange(LOCATION_MZONE)
e2:SetCondition(c31386180.decon)
e2:SetTarget(c31386180.destg) e2:SetTarget(c31386180.destg)
e2:SetOperation(c31386180.desop) e2:SetOperation(c31386180.desop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
...@@ -38,6 +39,9 @@ end ...@@ -38,6 +39,9 @@ end
function c31386180.condition(e) function c31386180.condition(e)
return e:GetHandler():GetOverlayCount()>0 return e:GetHandler():GetOverlayCount()>0
end end
function c31386180.decon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetBattledGroupCount()>0
end
function c31386180.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c31386180.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsControler(1-tp) and chkc:IsOnField() end if chkc then return chkc:IsControler(1-tp) and chkc:IsOnField() end
if chk==0 then return true end if chk==0 then return true 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