Commit 78632bfc authored by Tachibana's avatar Tachibana

tnndx

parent 34da2710
...@@ -31,8 +31,8 @@ function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -31,8 +31,8 @@ function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function cm.spop(e,tp,eg,ep,ev,re,r,rp) function cm.spop(e,tp,eg,ep,ev,re,r,rp)
if ( not Duel.IsPlayerCanDiscardDeck(tp,1) ) or Duel.GetFieldGroupCount(tp,LOCATION_HAND,0)==0 then return end if ( not Duel.IsPlayerCanDiscardDeck(tp,1) ) or Duel.GetFieldGroupCount(tp,LOCATION_HAND,0)==0 then return end
local ct=Duel.GetFieldCard(tp,LOCATION_DECK,0)-1 local ct=Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)-1
local hc=Duel.GetFieldCard(tp,LOCATION_HAND,0) local hc=Duel.GetFieldGroupCount(tp,LOCATION_HAND,0)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g=Duel.SelectMatchingCard(tp,Card.IsDiscardable,tp,LOCATION_HAND,0,1,math.min(ct,hc),nil,REASON_EFFECT) local g=Duel.SelectMatchingCard(tp,Card.IsDiscardable,tp,LOCATION_HAND,0,1,math.min(ct,hc),nil,REASON_EFFECT)
local tt=g:GetCount()+1 local tt=g:GetCount()+1
......
...@@ -2,6 +2,7 @@ Duel.LoadScript("c12048000.lua") ...@@ -2,6 +2,7 @@ Duel.LoadScript("c12048000.lua")
--墓城誓姬 黑崎春日 --墓城誓姬 黑崎春日
local m=12048030 local m=12048030
local cm=_G["c"..m] local cm=_G["c"..m]
cm.named_with_HakaShiro=true
function cm.initial_effect(c) function cm.initial_effect(c)
--indes --indes
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
......
...@@ -84,7 +84,7 @@ function c40009178.setop(e,tp,eg,ep,ev,re,r,rp) ...@@ -84,7 +84,7 @@ function c40009178.setop(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.SelectMatchingCard(tp,c40009178.setfilter,tp,LOCATION_EXTRA,0,1,1,nil) local g=Duel.SelectMatchingCard(tp,c40009178.setfilter,tp,LOCATION_EXTRA,0,1,1,nil)
local tc=g:GetFirst() local tc=g:GetFirst()
if tc then if tc then
Duel.MoveToField(tc,tp,tp,LOCATION_SZONE,POS_FACEUP,true) Duel.MoveToField(tc,tp,tp,LOCATION_PZONE,POS_FACEUP,true)
end end
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD) e1:SetType(EFFECT_TYPE_FIELD)
......
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