Commit 36dab993 authored by salix5's avatar salix5

fix

68836428トライエッジ・リヴァイア
The ATK updating effect cannot target an ATK 0  normal monster.

86686671 サイバー・リペア・プラント

http://www.db.yugioh-card.com/yugiohdb/faq_search.action?ope=5&fid=13000&keyword=&tag=-1
The 2 effect are at different timing.
parent d6c38ebf
...@@ -46,7 +46,7 @@ function c68836428.cost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -46,7 +46,7 @@ function c68836428.cost(e,tp,eg,ep,ev,re,r,rp,chk)
e:GetHandler():RemoveOverlayCard(tp,1,1,REASON_COST) e:GetHandler():RemoveOverlayCard(tp,1,1,REASON_COST)
end end
function c68836428.filter(c) function c68836428.filter(c)
return c:IsFaceup() return c:IsFaceup() and (c:IsType(TYPE_EFFECT) or c:GetAttack()>0)
end end
function c68836428.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c68836428.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and c68836428.filter(chkc) end if chkc then return chkc:IsLocation(LOCATION_MZONE) and c68836428.filter(chkc) end
......
...@@ -69,6 +69,7 @@ function c86686671.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -69,6 +69,7 @@ function c86686671.activate(e,tp,eg,ep,ev,re,r,rp)
if op~=0 then if op~=0 then
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) then if tc:IsRelateToEffect(e) then
if op==2 then Duel.BreakEffect() end
Duel.SendtoDeck(tc,nil,2,REASON_EFFECT) Duel.SendtoDeck(tc,nil,2,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