Commit e514f360 authored by Amiya's avatar Amiya

修复

parent e20d0db4
No preview for this file type
......@@ -30,7 +30,7 @@ function s.cfilter(c)
return c:IsFaceupEx() and c:IsSetCard(0xae)
end
function s.lvtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and s.filter(chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and s.lvfilter(chkc)
and chkc:IsControler(tp) end
if chk==0 then return Duel.IsExistingTarget(s.lvfilter,tp,LOCATION_MZONE,0,1,nil)
and Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_ONFIELD+LOCATION_GRAVE,0,1,nil) end
......
......@@ -77,8 +77,7 @@ function s.eaop(e,tp,eg,ep,ev,re,r,rp)
end
function s.actcon(e)
local a=Duel.GetAttacker()
local b=Duel.GetAttackTarget()
return a:IsSetCard(0x10af) and a:IsControler(e:GetHandlerPlayer()) or b:IsSetCard(0x10af) and b:IsControler(e:GetHandlerPlayer())
return a:IsSetCard(0x10af) and a:IsControler(e:GetHandlerPlayer())
end
function s.thfilter(c)
return c:IsFaceupEx() and c:IsSetCard(0xaf)
......
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