Commit abb8a8d2 authored by nanahira's avatar nanahira

fix

parent a0d06bed
...@@ -51,8 +51,8 @@ function cm.eqcon1(e,tp,eg,ep,ev,re,r,rp) ...@@ -51,8 +51,8 @@ function cm.eqcon1(e,tp,eg,ep,ev,re,r,rp)
end end
function cm.eqtg1(e,tp,eg,ep,ev,re,r,rp,chk) function cm.eqtg1(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
local d=Duel.GetAttackTarget() local d=Duel.GetAttacker()
if chk==0 then return d and d==c and d and Duel.GetLocationCount(tp,LOCATION_SZONE)>0 and Duel.IsExistingMatchingCard(Card.IsType,tp,0,LOCATION_MZONE+LOCATION_GRAVE,1,nil,TYPE_MONSTER) end if chk==0 then return d==c and Duel.GetLocationCount(tp,LOCATION_SZONE)>0 and Duel.IsExistingMatchingCard(Card.IsType,tp,0,LOCATION_MZONE+LOCATION_GRAVE,1,nil,TYPE_MONSTER) end
Duel.SetChainLimit(function(sce,scep,sctp)return scep==sctp end) Duel.SetChainLimit(function(sce,scep,sctp)return scep==sctp end)
end end
function cm.eqtg(e,tp,eg,ep,ev,re,r,rp,chk) function cm.eqtg(e,tp,eg,ep,ev,re,r,rp,chk)
...@@ -100,13 +100,3 @@ function cm.reptg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -100,13 +100,3 @@ function cm.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
else return false end else return false end
end end
--yl_testok --yl_testok
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