Commit 5a5201b9 authored by TanakaKotoha's avatar TanakaKotoha

foo foo

parent 8211c500
No preview for this file type
......@@ -78,7 +78,7 @@ function cm.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
local loc=LOCATION_MZONE+LOCATION_HAND+LOCATION_SZONE
if ft==0 then loc=LOCATION_MZONE end
if chk==0 then return ft>-1 and Duel.IsExistingMatchingCard(cm.spcfilter,tp,loc,0,1,nil,ft) end
if chk==0 then return ft>-1 and Duel.IsExistingMatchingCard(cm.spcfilter,tp,loc,0,1,c,ft) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g=Duel.SelectMatchingCard(tp,cm.spcfilter,tp,loc,0,1,1,c,ft)
Duel.SendtoGrave(g,REASON_COST)
......
......@@ -41,7 +41,7 @@ function c4212302.activate(e,tp,eg,ep,ev,re,r,rp)
if Duel.IsPlayerCanDiscardDeck(tp,2) then
if Duel.SelectEffectYesNo(tp,e:GetHandler(),95) then
if Duel.DiscardDeck(tp,2,REASON_EFFECT)~=0
and Duel.IsExistingMatchingCard(c4212301.tffilter,tp,LOCATION_HAND+LOCATION_GRAVE,0,1,nil,tp)
and Duel.IsExistingMatchingCard(c4212302.tffilter,tp,LOCATION_HAND+LOCATION_GRAVE,0,1,nil,tp)
and Duel.SelectEffectYesNo(tp,e:GetHandler(),527) then
if Duel.GetLocationCount(tp,LOCATION_SZONE)<=0 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOFIELD)
......
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