Commit b7085d29 authored by Amiya's avatar Amiya

修复

parent 07a0c340
Pipeline #41259 passed with stages
in 1 minute and 58 seconds
...@@ -40,9 +40,9 @@ function s.initial_effect(c) ...@@ -40,9 +40,9 @@ function s.initial_effect(c)
e5:SetCode(EVENT_PHASE+PHASE_STANDBY) e5:SetCode(EVENT_PHASE+PHASE_STANDBY)
e5:SetRange(LOCATION_SZONE) e5:SetRange(LOCATION_SZONE)
e5:SetCountLimit(1) e5:SetCountLimit(1)
e5:SetCondition(s.tgcon) e5:SetCondition(s.tgcon2)
e5:SetTarget(s.tgtg) e5:SetTarget(s.tgtg2)
e5:SetOperation(s.tgop) e5:SetOperation(s.tgop2)
c:RegisterEffect(e5) c:RegisterEffect(e5)
end end
function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) function s.cost(e,tp,eg,ep,ev,re,r,rp,chk)
...@@ -136,17 +136,17 @@ function s.efilter(e,te) ...@@ -136,17 +136,17 @@ function s.efilter(e,te)
return te:GetOwnerPlayer()~=e:GetHandlerPlayer() and te:GetOwner()~=e:GetOwner() return te:GetOwnerPlayer()~=e:GetHandlerPlayer() and te:GetOwner()~=e:GetOwner()
and te:IsActivated() and te:IsActivated()
end end
function s.tgcon(e,tp,eg,ep,ev,re,r,rp) function s.tgcon2(e,tp,eg,ep,ev,re,r,rp)
local tc=e:GetHandler():GetEquipTarget() local tc=e:GetHandler():GetEquipTarget()
return Duel.GetTurnPlayer()==tp return Duel.GetTurnPlayer()==tp
and (tc:IsLevelAbove(7) or tc:IsRankAbove(7)) and (tc:IsLevelAbove(7) or tc:IsRankAbove(7))
end end
function s.tgtg(e,tp,eg,ep,ev,re,r,rp,chk) function s.tgtg2(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
local dg=Duel.GetMatchingGroup(Card.IsAbleToGrave,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,nil) local dg=Duel.GetMatchingGroup(Card.IsAbleToGrave,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,nil)
Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,dg,dg:GetCount(),0,0) Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,dg,dg:GetCount(),0,0)
end end
function s.tgop(e,tp,eg,ep,ev,re,r,rp) function s.tgop2(e,tp,eg,ep,ev,re,r,rp)
local dg=Duel.GetMatchingGroup(Card.IsAbleToGrave,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,nil) local dg=Duel.GetMatchingGroup(Card.IsAbleToGrave,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,nil)
Duel.SendtoGrave(dg,REASON_EFFECT) Duel.SendtoGrave(dg,REASON_EFFECT)
end end
\ No newline at end of file
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