Commit ef3537c4 authored by salix5's avatar salix5

fix

21977828 甲虫装機 ギガウィービル
94573223 甲虫装機 ギガマンティス
http://www.db.yugioh-card.com/yugiohdb/faq_search.action?ope=5&fid=12123&keyword=&tag=-1
If the control of target is changed in the chain of the ignition effect, this card should be sent to grave.

2830693 虹クリボー
Now it is changed into the form like 94573223 甲虫装機 ギガマンティス.
parent a37efc9d
...@@ -42,7 +42,7 @@ function c21977828.eqop(e,tp,eg,ep,ev,re,r,rp) ...@@ -42,7 +42,7 @@ function c21977828.eqop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if Duel.GetLocationCount(tp,LOCATION_SZONE)<=0 or tc:IsFacedown() or not tc:IsRelateToEffect(e) then if Duel.GetLocationCount(tp,LOCATION_SZONE)<=0 or tc:IsFacedown() or not tc:IsRelateToEffect(e) or not tc:IsControler(tp) then
Duel.SendtoGrave(c,REASON_EFFECT) Duel.SendtoGrave(c,REASON_EFFECT)
return return
end end
......
...@@ -38,10 +38,12 @@ function c2830693.eqtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -38,10 +38,12 @@ function c2830693.eqtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel.SetTargetCard(at) Duel.SetTargetCard(at)
end end
function c2830693.eqop(e,tp,eg,ep,ev,re,r,rp) function c2830693.eqop(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLocationCount(tp,LOCATION_SZONE)<=0 then return end
local c=e:GetHandler() local c=e:GetHandler()
local tc=Duel.GetAttacker() local tc=Duel.GetFirstTarget()
if c:IsRelateToEffect(e) and tc:IsFaceup() and tc:IsRelateToBattle() then if not c:IsRelateToEffect(e) then return end
if Duel.GetLocationCount(tp,LOCATION_SZONE)<=0 or tc:IsFacedown() or not tc:IsRelateToEffect(e) then
Duel.SendtoGrave(c,REASON_EFFECT)
else
Duel.Equip(tp,c,tc,true) Duel.Equip(tp,c,tc,true)
--Add Equip limit --Add Equip limit
local e1=Effect.CreateEffect(tc) local e1=Effect.CreateEffect(tc)
......
...@@ -42,7 +42,7 @@ function c94573223.eqop(e,tp,eg,ep,ev,re,r,rp) ...@@ -42,7 +42,7 @@ function c94573223.eqop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if Duel.GetLocationCount(tp,LOCATION_SZONE)<=0 or tc:IsFacedown() or not tc:IsRelateToEffect(e) then if Duel.GetLocationCount(tp,LOCATION_SZONE)<=0 or tc:IsFacedown() or not tc:IsRelateToEffect(e) or not tc:IsControler(tp) then
Duel.SendtoGrave(c,REASON_EFFECT) Duel.SendtoGrave(c,REASON_EFFECT)
return return
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