Commit 5786fe96 authored by Nemo Ma's avatar Nemo Ma

fix

parent 418bed1c
local m=33712000
local cm=_G["c"..m]
cm.name="赛扬娜拉"
function cm.initial_effect(c)
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_REMOVE+CATEGORY_DAMAGE)
e1:SetType(EFFECT_TYPE_ACTIVATE)
......@@ -20,7 +21,8 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
local g1=Duel.GetMatchingGroup(Card.IsAbleToRemove,tp,LOCATION_SZONE,LOCATION_SZONE,nil)
local g2=Duel.GetMatchingGroup(Card.IsAbleToRemove,tp,LOCATION_MZONE,LOCATION_MZONE,nil)
local g3=Duel.GetMatchingGroup(Card.IsAbleToRemove,tp,LOCATION_GRAVE,LOCATION_GRAVE,nil)
local g4=Duel.GetDecktopGroup(tp,15):Merge(Duel.GetDecktopGroup(1-tp,15))
local g4=Duel.GetDecktopGroup(tp,15)
g4:Merge(Duel.GetDecktopGroup(1-tp,15))
g4=g4:Filter(Card.IsAbleToRemove,nil)
local sel=0
if g1 and #g1>0 and Duel.GetLP(tp)>=4000 and Duel.SelectYesNo(tp,aux.Stringid(m,0)) then
......
......@@ -15,12 +15,12 @@ function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,nil,1-tp,LOCATION_DECK)
end
function cm.activate(e,tp,eg,ep,ev,re,r,rp)
local op_deck=Duel.GetFieldGroupCount(tp,0,LOCATION_DECK)
local op_deck=Duel.GetFieldGroup(tp,0,LOCATION_DECK)
if #op_deck<2 then return end
local t={}
local i=2
local max=op_deck:GetCount()
for i=2,max do t[i]=i end
for i=2,max do t[i-1]=i end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_NUMBER)
local num=Duel.AnnounceNumber(1-tp,table.unpack(t))
Duel.ConfirmDecktop(1-tp,num)
......
......@@ -15,22 +15,24 @@ function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return g:FilterCount(Card.IsAbleToHand,nil)>=2 end
end
function cm.activate(e,tp,eg,ep,ev,re,r,rp)
local op_deck=Duel.GetFieldGroupCount(tp,0,LOCATION_DECK)
local op_deck=Duel.GetFieldGroup(tp,0,LOCATION_DECK)
if #op_deck<2 then return end
if Duel.IsChainDisablable(0) and e:GetHandler():IsSSetable() and Duel.SelectYesNo(1-tp,aux.Stringid(m,0)) then
Duel.SetLP(1-tp,math.ceil(Duel.GetLP(tp)/2))
Duel.NegateEffect(0)
e:GetHandler():CancelToGrave()
Duel.SSet(1-tp,e:GetHandler(),1-tp)
e:GetHandler():CancelToGrave()
Duel.MoveToField(e:GetHandler(),1-tp,1-tp,LOCATION_SZONE,POS_FACEDOWN,false)
Duel.RaiseEvent(Group.FromCards(e:GetHandler()),EVENT_SSET,e,REASON_EFFECT,1-tp,1-tp,0)
return
end
local max=20
if #op_deck<max then max=#op_deck end
local p=1-tp
if Duel.GetFieldGroup(tp,LOCATION_HAND,0)==0 then p=tp end
if Duel.GetFieldGroupCount(tp,LOCATION_HAND,0)==0 then p=tp end
local t={}
local i=2
for i=2,max do t[i]=i end
for i=2,max do t[i-1]=i end
Duel.Hint(HINT_SELECTMSG,p,HINTMSG_NUMBER)
local num=Duel.AnnounceNumber(p,table.unpack(t))
Duel.ConfirmDecktop(1-tp,num)
......
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