Commit 10819417 authored by Huangnan's avatar Huangnan

Update c33501203.lua

parent e365321d
...@@ -27,14 +27,16 @@ function cm.initial_effect(c) ...@@ -27,14 +27,16 @@ function cm.initial_effect(c)
e2:SetOperation(cm.op) e2:SetOperation(cm.op)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function cm.thcfilter(c) function cm.thcfilter(c,tp)
return c:IsType(TYPE_MONSTER) and c:IsReleasable() return c:IsType(TYPE_MONSTER) and c:IsReleasable()
end end
function cm.thcost(e,tp,eg,ep,ev,re,r,rp,chk) function cm.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckReleaseGroupEx(tp,cm.thcfilter,1,nil) and e:GetHandler():IsAbleToHand() end local g=Duel.GetReleaseGroup(tp,true):Filter(cm.thcfilter,e:GetHandler(),tp)
if chk==0 then return #g>0 end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
local g=Duel.SelectReleaseGroupEx(tp,cm.thcfilter,1,1,nil) local rg=g:Select(tp,1,1,nil)
Duel.Release(g,REASON_COST) local tc=rg:GetFirst()
Duel.Release(tc,REASON_COST)
end 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)
if chk==0 then return true end if chk==0 then return true end
......
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