Commit 3a7d3609 authored by salix5's avatar salix5

fix 烈風帝ライザー (add str4, str5)

str4: field to deck top
str5: grave to deck top
parent 8c3be6b2
...@@ -66,20 +66,23 @@ function c69327790.tdtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -66,20 +66,23 @@ function c69327790.tdtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,g3,1,0,0) Duel.SetOperationInfo(0,CATEGORY_TOHAND,g3,1,0,0)
end end
e:SetLabelObject(g2:GetFirst()) e:SetLabelObject(g2:GetFirst())
g1:Merge(g2)
Duel.SetOperationInfo(0,CATEGORY_TODECK,g1,2,0,0) Duel.SetOperationInfo(0,CATEGORY_TODECK,g1,2,0,0)
end end
end end
function c69327790.tdop(e,tp,eg,ep,ev,re,r,rp) function c69327790.tdop(e,tp,eg,ep,ev,re,r,rp)
local ex,g1=Duel.GetOperationInfo(0,CATEGORY_TODECK) local ex,g1=Duel.GetOperationInfo(0,CATEGORY_TODECK)
local ex2,g2=Duel.GetOperationInfo(0,CATEGORY_TOHAND) local ex2,g2=Duel.GetOperationInfo(0,CATEGORY_TOHAND)
local gc=e:GetLabelObject()
if not g1 then return end if not g1 then return end
local gc=e:GetLabelObject()
local fg=g1:Clone()
fg:RemoveCard(gc)
local fc=fg:GetFirst()
local sg1=g1:Filter(Card.IsRelateToEffect,nil,e) local sg1=g1:Filter(Card.IsRelateToEffect,nil,e)
local fc=sg1:GetFirst()
if gc and gc:IsRelateToEffect(e) then sg1:AddCard(gc) end
if sg1:GetCount()>0 and Duel.SendtoDeck(sg1,nil,0,REASON_EFFECT)>1 then if sg1:GetCount()>0 and Duel.SendtoDeck(sg1,nil,0,REASON_EFFECT)>1 then
if fc:GetControler()==gc:GetControler() and fc:IsLocation(LOCATION_DECK) and gc:IsLocation(LOCATION_DECK) then if fc:GetControler()==gc:GetControler() and fc:IsLocation(LOCATION_DECK) and gc:IsLocation(LOCATION_DECK) then
if Duel.SelectYesNo(tp,aux.Stringid(69327790,3)) then local op=Duel.SelectOption(tp,aux.Stringid(69327790,3),aux.Stringid(69327790,4))
if op==0 then
Duel.MoveSequence(fc,0) Duel.MoveSequence(fc,0)
else else
Duel.MoveSequence(gc,0) Duel.MoveSequence(gc,0)
......
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