Commit b7ce9d62 authored by TanakaKotoha's avatar TanakaKotoha

fix

parent 8fa49486
...@@ -99,7 +99,7 @@ function cm.epop(e,tp,eg,ep,ev,re,r,rp) ...@@ -99,7 +99,7 @@ function cm.epop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function cm.cfilter(c,tp) function cm.cfilter(c,tp)
return c:IsReason(REASON_BATTLE+REASON_EFFECT) return c:IsReason(REASON_BATTLE+REASON_EFFECT) and c:IsAbleToHand()
and c:GetPreviousControler()==tp and c:IsPreviousLocation(LOCATION_ONFIELD) and c:IsType(TYPE_PENDULUM) and c:GetPreviousControler()==tp and c:IsPreviousLocation(LOCATION_ONFIELD) and c:IsType(TYPE_PENDULUM)
end end
function cm.thcon(e,tp,eg,ep,ev,re,r,rp) function cm.thcon(e,tp,eg,ep,ev,re,r,rp)
...@@ -108,9 +108,14 @@ end ...@@ -108,9 +108,14 @@ end
function cm.thfilter(c) function cm.thfilter(c)
return c:IsType(TYPE_PENDULUM) and c:IsAbleToHand() return c:IsType(TYPE_PENDULUM) and c:IsAbleToHand()
end end
function cm.thop(e,tp,eg,ep,ev,re,r,rp) function cm.thop(e,tp,eg,ep,ev,re,r,rp)
Duel.SendtoHand(eg:Filter(cm.thfilter,nil),nil,REASON_EFFECT) local tc=eg:GetFirst()
while tc do
if tc:IsType(TYPE_PENDULUM) and tc:IsAbleToHand() and tc:GetPreviousControler()==tp then
Duel.SendtoHand(tc,nil,REASON_EFFECT)
end
tc=eg:GetNext()
end
end end
function cm.atop(e,tp,eg,ep,ev,re,r,rp) function cm.atop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
......
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