Commit 9e143933 authored by nanahira's avatar nanahira
parents 29637fb7 f11c84c0
...@@ -78,16 +78,9 @@ function c12001021.thop(e,tp,eg,ep,ev,re,r,rp) ...@@ -78,16 +78,9 @@ function c12001021.thop(e,tp,eg,ep,ev,re,r,rp)
Duel.ConfirmCards(1-tp,g) Duel.ConfirmCards(1-tp,g)
Duel.ShuffleDeck(tp) Duel.ShuffleDeck(tp)
end end
local tg=Duel.GetMatchingGroup(Card.IsAbleToDeck,p,LOCATION_HAND,0,nil) local tg=Duel.GetMatchingGroup(Card.IsAbleToDeck,p, LOCATION_HAND,0,nil)
if tg:GetCount()>1 and tg:IsExists(Card.IsSetCard,1,nil,0xfb0) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
local sg1=tg:Select(tp,Card.IsSetCard,1,1,nil,0xfb0) local sg1=tg:Select(tp,Card.IsSetCard,1,1,nil,nil)
Duel.ConfirmCards(1-tp,sg1) Duel.ConfirmCards(1-tp,sg1)
Duel.SendtoDeck(sg1,nil,0,REASON_EFFECT) Duel.SendtoDeck(sg1,nil,0,REASON_EFFECT)
else
local hg=Duel.GetFieldGroup(tp,LOCATION_HAND,0)
Duel.ConfirmCards(1-tp,hg)
local ct=Duel.SendtoDeck(hg,nil,0,REASON_EFFECT)
Duel.SortDecktop(tp,tp,ct)
end
end end
\ No newline at end of file
...@@ -161,7 +161,7 @@ function c13257215.rmop(e,tp,eg,ep,ev,re,r,rp) ...@@ -161,7 +161,7 @@ function c13257215.rmop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c13257215.spcon(e,tp,eg,ep,ev,re,r,rp) function c13257215.spcon(e,tp,eg,ep,ev,re,r,rp)
local c=s:GetHandler() local c=e:GetHandler()
return c:GetReasonPlayer()~=tp and c:IsReason(REASON_EFFECT) and c:GetPreviousControler()==tp return c:GetReasonPlayer()~=tp and c:IsReason(REASON_EFFECT) and c:GetPreviousControler()==tp
end end
function c13257215.spfilter(c,e,tp) function c13257215.spfilter(c,e,tp)
......
...@@ -63,7 +63,7 @@ function c13257307.efilter(e,re) ...@@ -63,7 +63,7 @@ function c13257307.efilter(e,re)
end end
function c13257307.cacon(e,tp,eg,ep,ev,re,r,rp) function c13257307.cacon(e,tp,eg,ep,ev,re,r,rp)
local ec=e:GetHandler():GetEquipTarget() local ec=e:GetHandler():GetEquipTarget()
return ec and eg:IsContains(ec) return ec and ec:IsRelateToBattle() and ec:IsStatus(STATUS_OPPO_BATTLE)
end end
function c13257307.catg(e,tp,eg,ep,ev,re,r,rp,chk) function c13257307.catg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
......
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