Commit 536a5b22 authored by 想象力很好的毛虫's avatar 想象力很好的毛虫 Committed by GitHub

Fix ホルスの先導-ハーピ (#2276)

* Fix ホルスの先導-ハーピ

* Better logic
parent 695a21be
...@@ -56,12 +56,12 @@ function c47330808.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -56,12 +56,12 @@ function c47330808.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel.SetOperationInfo(0,CATEGORY_LEAVE_GRAVE,g,2,0,0) Duel.SetOperationInfo(0,CATEGORY_LEAVE_GRAVE,g,2,0,0)
end end
function c47330808.desop(e,tp,eg,ep,ev,re,r,rp) function c47330808.desop(e,tp,eg,ep,ev,re,r,rp)
local tg=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS):Filter(Card.IsRelateToEffect,nil,e) local tg=Duel.GetTargetsRelateToChain()
if tg:GetCount()==2 and tg:FilterCount(Card.IsAbleToHand,nil)==2 if tg:GetCount()==2 then
and (not tg:FilterCount(Card.IsAbleToDeck,nil)==2 if tg:FilterCount(Card.IsAbleToHand,nil)==2 and (tg:FilterCount(Card.IsAbleToDeck,nil)<2 or Duel.SelectOption(tp,aux.Stringid(47330808,2),aux.Stringid(47330808,3))==0) then
or Duel.SelectOption(tp,aux.Stringid(47330808,2),aux.Stringid(47330808,3))==0) then Duel.SendtoHand(tg,nil,REASON_EFFECT)
Duel.SendtoHand(tg,nil,REASON_EFFECT) elseif tg:FilterCount(Card.IsAbleToDeck,nil)==2 then
else Duel.SendtoDeck(tg,nil,SEQ_DECKSHUFFLE,REASON_EFFECT)
Duel.SendtoDeck(tg,nil,SEQ_DECKSHUFFLE,REASON_EFFECT) 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