Commit eb4ee4ba authored by Amiya's avatar Amiya

修复

parent fcd22420
Pipeline #41004 passed with stages
in 2 minutes and 6 seconds
...@@ -19,6 +19,8 @@ function s.initial_effect(c) ...@@ -19,6 +19,8 @@ function s.initial_effect(c)
e2:SetProperty(EFFECT_FLAG_CARD_TARGET) e2:SetProperty(EFFECT_FLAG_CARD_TARGET)
e2:SetCode(EVENT_ATTACK_ANNOUNCE) e2:SetCode(EVENT_ATTACK_ANNOUNCE)
e2:SetRange(LOCATION_GRAVE) e2:SetRange(LOCATION_GRAVE)
e2:SetCountLimit(1,id+o)
e2:SetCondition(s.poscon)
e2:SetCost(aux.bfgcost) e2:SetCost(aux.bfgcost)
e2:SetTarget(s.postg) e2:SetTarget(s.postg)
e2:SetOperation(s.posop) e2:SetOperation(s.posop)
...@@ -50,6 +52,9 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -50,6 +52,9 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
end end
end end
end end
function s.poscon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetAttacker():GetControler()~=tp
end
function s.postg(e,tp,eg,ep,ev,re,r,rp,chk) function s.postg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsFacedown,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(Card.IsFacedown,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_POSITION,nil,1,0,0) Duel.SetOperationInfo(0,CATEGORY_POSITION,nil,1,0,0)
......
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