Commit 64b788f5 authored by argon.sun's avatar argon.sun

bug fix

parent 7655b48f
......@@ -5,7 +5,7 @@
#include <set>
#include <vector>
#define PROTO_VERSION 0x1010
#define PROTO_VERSION 0x1011
namespace ygo {
......
......@@ -17,9 +17,9 @@ function c77036039.cfilter(c)
return c:IsCode(80280737) and c:IsAbleToDeckAsCost()
end
function c77036039.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c77036039.cfilter,tp,LOCATION_GRAVE,0,1,nil) end
if chk==0 then return Duel.IsExistingMatchingCard(c77036039.cfilter,tp,LOCATION_GRAVE+LOCATION_HAND,0,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
local g=Duel.SelectMatchingCard(tp,c77036039.cfilter,tp,LOCATION_GRAVE,0,1,1,nil)
local g=Duel.SelectMatchingCard(tp,c77036039.cfilter,tp,LOCATION_GRAVE+LOCATION_HAND,0,1,1,nil)
Duel.SendtoDeck(g,nil,2,REASON_COST)
end
function c77036039.filter(c)
......
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