Commit 6d98ea13 authored by wind2009's avatar wind2009

Fix 彷徨える幽霊船

parent 1cc01c6b
...@@ -63,7 +63,7 @@ function s.descon(e,tp,eg,ep,ev,re,r,rp) ...@@ -63,7 +63,7 @@ function s.descon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetType()==TYPE_SPELL+TYPE_CONTINUOUS return e:GetHandler():GetType()==TYPE_SPELL+TYPE_CONTINUOUS
end end
function s.tgfilter(c,tp) function s.tgfilter(c,tp)
return c:IsFaceup() and c:IsLevelAbove(5) return c:IsFaceup() and c:IsLevelAbove(5) and c:IsRace(RACE_ZOMBIE)
and Duel.IsExistingMatchingCard(s.desfilter,tp,0,LOCATION_MZONE,1,nil,c:GetAttack()) and Duel.IsExistingMatchingCard(s.desfilter,tp,0,LOCATION_MZONE,1,nil,c:GetAttack())
end end
function s.desfilter(c,atk) function s.desfilter(c,atk)
...@@ -77,10 +77,11 @@ function s.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -77,10 +77,11 @@ function s.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end end
function s.desop(e,tp,eg,ep,ev,re,r,rp) function s.desop(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) and tc:IsFaceup() then if tc:IsRelateToEffect(e) and tc:IsFaceup() and tc:IsType(TYPE_MONSTER) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local g=Duel.SelectMatchingCard(tp,s.desfilter,tp,0,LOCATION_MZONE,1,1,nil,tc:GetAttack()) local g=Duel.SelectMatchingCard(tp,s.desfilter,tp,0,LOCATION_MZONE,1,1,nil,tc:GetAttack())
if #g>0 then if #g>0 then
Duel.HintSelection(g)
Duel.Destroy(g,REASON_EFFECT) Duel.Destroy(g,REASON_EFFECT)
end end
end 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