Commit 718a6b77 authored by salix5's avatar salix5

fix

58120309 スターライト·ロード

http://www.db.yugioh-card.com/yugiohdb/faq_search.action?ope=5&fid=10023&keyword=&tag=-1

http://www.db.yugioh-card.com/yugiohdb/faq_search.action?ope=5&fid=12361&keyword=&tag=-1

http://www.db.yugioh-card.com/yugiohdb/faq_search.action?ope=5&fid=9551&keyword=&tag=-1
This card can destroy monster in extra deck, but cannot negte and
destroy disabled monster.
Besides, destroy and sp_summon are at different timing.

49010598 天罰

http://www.db.yugioh-card.com/yugiohdb/faq_search.action?ope=5&fid=7852&keyword=&tag=-1
This card can destroy monster in extra deck.
parent 96d199bd
...@@ -27,7 +27,7 @@ function c49010598.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -27,7 +27,7 @@ function c49010598.target(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function c49010598.activate(e,tp,eg,ep,ev,re,r,rp) function c49010598.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) Duel.NegateActivation(ev)
if re:GetHandler():IsRelateToEffect(re) then if re:GetHandler():GetLocation()==LOCATION_EXTRA or re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
...@@ -29,11 +29,15 @@ function c58120309.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -29,11 +29,15 @@ function c58120309.target(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c58120309.activate(e,tp,eg,ep,ev,re,r,rp) function c58120309.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateEffect(ev) local tc=re:GetHandler()
if re:GetHandler():IsRelateToEffect(re) and Duel.Destroy(eg,REASON_EFFECT)~=0 then if not tc:IsDisabled() then
local sc=Duel.GetFirstMatchingCard(c58120309.sfilter,tp,LOCATION_EXTRA,0,nil,e,tp) Duel.NegateEffect(ev)
if sc and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.SelectYesNo(tp,aux.Stringid(58120309,0)) then if (tc:GetLocation()==LOCATION_EXTRA or tc:IsRelateToEffect(re)) and Duel.Destroy(eg,REASON_EFFECT)~=0 then
Duel.SpecialSummon(sc,0,tp,tp,false,false,POS_FACEUP) local sc=Duel.GetFirstMatchingCard(c58120309.sfilter,tp,LOCATION_EXTRA,0,nil,e,tp)
if sc and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.SelectYesNo(tp,aux.Stringid(58120309,0)) then
Duel.BreakEffect()
Duel.SpecialSummon(sc,0,tp,tp,false,false,POS_FACEUP)
end
end end
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