Commit 47557104 authored by Tachibana's avatar Tachibana

E

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