Commit 47557104 authored by Tachibana's avatar Tachibana

E

parent deef5c45
......@@ -32,7 +32,7 @@ function cm.recop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local rg=Duel.SelectReleaseGroupEx(tp,cm.costfilter,1,99,nil)
local ct=Duel.Release(rg,REASON_EFFECT)
local rec=Duel.GetMatchingGroupCount(Card.IsType,tp,LOCATION_GRAVE,0,nil,TYPE_SPELL+TYPE_TRAP)
local rec=Duel.GetMatchingGroupCount(Card.IsType,tp,LOCATION_GRAVE,LOCATION_GRAVE,nil,TYPE_SPELL)
if ct>0 then
Duel.Recover(tp,ct*rec*800,REASON_EFFECT)
end
......@@ -40,6 +40,9 @@ end
function cm.thfilter(c)
return c:IsSetCard(0xde3,0xde6) and c:IsAbleToHand()
end
function cm.tgfilter(c)
return c:IsSetCard(0xde3,0xde6) and c:IsAbleToGrave()
end
function cm.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
local a1=Duel.IsExistingMatchingCard(cm.thfilter,tp,LOCATION_DECK,0,1,nil)
local a2=Duel.IsExistingMatchingCard(cm.tgfilter,tp,LOCATION_DECK,0,1,nil)
......@@ -58,7 +61,7 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp)
local op=-1
if g1:GetCount()>0 and g2:GetCount()>0 then op=Duel.SelectOption(tp,aux.Stringid(m,0),aux.Stringid(m,1))
elseif g1:GetCount()>0 then op=Duel.SelectOption(tp,aux.Stringid(m,0))
elseif g2:GetCount()>0 then op=Duel.SelectOption(tp,aux.Stringid(m,0))+1
elseif g2:GetCount()>0 then op=Duel.SelectOption(tp,aux.Stringid(m,1))+1
else return end
if op==0 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
......
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