Commit 4d2da956 authored by mercury233's avatar mercury233 Committed by GitHub

fix 死配の呪眼

parent 8566c95b
...@@ -36,15 +36,15 @@ end ...@@ -36,15 +36,15 @@ end
function c42899204.filter(c,atk) function c42899204.filter(c,atk)
return c:IsSetCard(0x129) and c:IsFaceup() and c:GetAttack()>atk return c:IsSetCard(0x129) and c:IsFaceup() and c:GetAttack()>atk
end end
function c42899204.filter1(c,tp) function c42899204.filter1(c,e,tp)
return c:IsAttackPos() and c:IsControler(1-tp) return c:IsCanBeEffectTarget(e) and c:IsAttackPos() and c:IsControler(1-tp)
and Duel.IsExistingMatchingCard(c42899204.filter,tp,LOCATION_MZONE,0,1,nil,c:GetAttack()) and Duel.IsExistingMatchingCard(c42899204.filter,tp,LOCATION_MZONE,0,1,nil,c:GetAttack())
end end
function c42899204.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c42899204.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return eg:IsContains(chkc) and c42899204.filter1(chkc,tp) end if chkc then return eg:IsContains(chkc) and c42899204.filter1(chkc,e,tp) end
if chk==0 then return eg:IsExists(c42899204.filter1,1,nil,tp) end if chk==0 then return eg:IsExists(c42899204.filter1,1,nil,e,tp) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_CONTROL) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_CONTROL)
local tc=eg:FilterSelect(tp,c42899204.filter1,1,1,nil,tp):GetFirst() local tc=eg:FilterSelect(tp,c42899204.filter1,1,1,nil,e,tp):GetFirst()
Duel.SetTargetCard(tc) Duel.SetTargetCard(tc)
Duel.SetOperationInfo(0,CATEGORY_CONTROL,tc,1,0,0) Duel.SetOperationInfo(0,CATEGORY_CONTROL,tc,1,0,0)
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