Commit ba9d40b9 authored by nekrozar's avatar nekrozar

fix Evigishki Gustkraken

https://www.db.yugioh-card.com/yugiohdb/faq_search.action?ope=4&cid=9597

■効果処理時に相手の手札を1枚または2枚ランダムに選んで確認し、その確認したカードの内1枚を持ち主のデッキに戻します。(デッキはシャッフルします。)
parent 88fa372c
...@@ -20,9 +20,15 @@ function c45222299.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -20,9 +20,15 @@ function c45222299.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel.SetOperationInfo(0,CATEGORY_TODECK,nil,1,0,LOCATION_HAND) Duel.SetOperationInfo(0,CATEGORY_TODECK,nil,1,0,LOCATION_HAND)
end end
function c45222299.operation(e,tp,eg,ep,ev,re,r,rp) function c45222299.operation(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetFieldGroupCount(tp,0,LOCATION_HAND)==0 then return end local ct=Duel.GetFieldGroupCount(tp,0,LOCATION_HAND)
if ct==0 then return end
local ac=1
if ct>1 then
Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(45222299,1))
ac=Duel.AnnounceNumber(tp,1,2)
end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_CONFIRM) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_CONFIRM)
local g=Duel.GetFieldGroup(tp,0,LOCATION_HAND):RandomSelect(tp,2) local g=Duel.GetFieldGroup(tp,0,LOCATION_HAND):RandomSelect(tp,ac)
Duel.ConfirmCards(tp,g) Duel.ConfirmCards(tp,g)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
local sg=g:Select(tp,1,1,nil) local sg=g:Select(tp,1,1,nil)
......
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