Commit d344cc2c authored by Amiya's avatar Amiya

修复

parent 39f72268
...@@ -29,7 +29,6 @@ function s.initial_effect(c) ...@@ -29,7 +29,6 @@ function s.initial_effect(c)
e4:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_F) e4:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_F)
e4:SetCode(EVENT_ATTACK_ANNOUNCE) e4:SetCode(EVENT_ATTACK_ANNOUNCE)
e4:SetRange(LOCATION_MZONE) e4:SetRange(LOCATION_MZONE)
e4:SetCondition(s.mtcon)
e4:SetTarget(s.mttg) e4:SetTarget(s.mttg)
e4:SetOperation(s.mtop) e4:SetOperation(s.mtop)
c:RegisterEffect(e4) c:RegisterEffect(e4)
...@@ -84,18 +83,14 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp) ...@@ -84,18 +83,14 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp)
Duel.ConfirmCards(1-hp,g) Duel.ConfirmCards(1-hp,g)
end end
end end
function s.mtcon(e,tp,eg,ep,ev,re,r,rp) function s.mttg(e,tp,eg,ep,ev,re,r,rp,chk)
local at=Duel.GetAttacker() local at=Duel.GetAttacker()
if chk==0 then return at:IsType(TYPE_XYZ) and at:IsOnField() and at:IsRace(RACE_DRAGON) end if chk==0 then return at:IsType(TYPE_XYZ) and at:IsOnField() and at:IsRace(RACE_DRAGON) end
end end
function s.mttg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Duel.SetOperationInfo(0,CATEGORY_COUNTER,nil,1,0,0x1)
end
function s.mtop(e,tp,eg,ep,ev,re,r,rp) function s.mtop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local at=Duel.GetAttacker() local at=Duel.GetAttacker()
if c:IsRelateToEffect(e) and at:IsRelateToBattle() and not at:IsImmuneToEffect(e) then if c:IsRelateToEffect(e) and at:IsRelateToBattle() then
Duel.Overlay(at,Group.FromCards(c)) Duel.Overlay(at,Group.FromCards(c))
end end
end end
\ No newline at end of file
...@@ -39,7 +39,7 @@ function s.descon(e,tp,eg,ep,ev,re,r,rp) ...@@ -39,7 +39,7 @@ function s.descon(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(s.desfilter,tp,LOCATION_MZONE,0,1,nil) return Duel.IsExistingMatchingCard(s.desfilter,tp,LOCATION_MZONE,0,1,nil)
end end
function s.desfilter(c) function s.desfilter(c)
return c:IsFaceup() and aux.NegateAnyFilter(c) return c:IsFaceup() and not aux.NegateAnyFilter(c)
end end
function s.destg(e,tp,eg,ep,ev,re,r,rp,chk) function s.destg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(s.desfilter,tp,0,LOCATION_ONFIELD,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(s.desfilter,tp,0,LOCATION_ONFIELD,1,nil) 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