Commit 9686d371 authored by nekrozar's avatar nekrozar
parent bf64b21d
...@@ -24,10 +24,9 @@ function c12632096.ctfilter(c) ...@@ -24,10 +24,9 @@ function c12632096.ctfilter(c)
end end
function c12632096.ctcost(e,tp,eg,ep,ev,re,r,rp,chk) function c12632096.ctcost(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
local rt=math.min(Duel.GetMatchingGroupCount(c12632096.ctfilter,tp,0,LOCATION_MZONE,nil),(Duel.GetLocationCount(tp,LOCATION_MZONE,tp,LOCATION_REASON_CONTROL)),c:GetOverlayCount(),3) local rt=math.min(Duel.GetMatchingGroupCount(c12632096.ctfilter,tp,0,LOCATION_MZONE,nil),(Duel.GetLocationCount(tp,LOCATION_MZONE,tp,LOCATION_REASON_CONTROL)),3)
if chk==0 then return rt>0 and c:CheckRemoveOverlayCard(tp,1,REASON_COST) end if chk==0 then return rt>0 and c:CheckRemoveOverlayCard(tp,1,REASON_COST) end
c:RemoveOverlayCard(tp,1,rt,REASON_COST) local ct=c:RemoveOverlayCard(tp,1,rt,REASON_COST)
local ct=Duel.GetOperatedGroup():GetCount()
e:SetLabel(ct) e:SetLabel(ct)
end end
function c12632096.cttg(e,tp,eg,ep,ev,re,r,rp,chk) function c12632096.cttg(e,tp,eg,ep,ev,re,r,rp,chk)
......
...@@ -69,8 +69,7 @@ function c32559361.damcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -69,8 +69,7 @@ function c32559361.damcon(e,tp,eg,ep,ev,re,r,rp)
end end
function c32559361.damcost(e,tp,eg,ep,ev,re,r,rp,chk) function c32559361.damcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():CheckRemoveOverlayCard(tp,1,REASON_COST) end if chk==0 then return e:GetHandler():CheckRemoveOverlayCard(tp,1,REASON_COST) end
e:GetHandler():RemoveOverlayCard(tp,1,99,REASON_COST) local ct=e:GetHandler():RemoveOverlayCard(tp,1,99,REASON_COST)
local ct=Duel.GetOperatedGroup():GetCount()
e:SetLabel(ct) e:SetLabel(ct)
end end
function c32559361.damtg2(e,tp,eg,ep,ev,re,r,rp,chk) function c32559361.damtg2(e,tp,eg,ep,ev,re,r,rp,chk)
......
...@@ -30,9 +30,8 @@ end ...@@ -30,9 +30,8 @@ end
function c78876707.thcost(e,tp,eg,ep,ev,re,r,rp,chk) function c78876707.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
if chk==0 then return c:CheckRemoveOverlayCard(tp,1,REASON_COST) end if chk==0 then return c:CheckRemoveOverlayCard(tp,1,REASON_COST) end
local rt=math.min(Duel.GetTargetCount(Card.IsAbleToHand,tp,0,LOCATION_ONFIELD,nil),c:GetOverlayCount()) local rt=Duel.GetTargetCount(Card.IsAbleToHand,tp,0,LOCATION_ONFIELD,nil)
c:RemoveOverlayCard(tp,1,rt,REASON_COST) local ct=c:RemoveOverlayCard(tp,1,rt,REASON_COST)
local ct=Duel.GetOperatedGroup():GetCount()
e:SetLabel(ct) e:SetLabel(ct)
end end
function c78876707.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c78876707.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
......
...@@ -38,9 +38,8 @@ end ...@@ -38,9 +38,8 @@ end
function c97584719.descost(e,tp,eg,ep,ev,re,r,rp,chk) function c97584719.descost(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
if chk==0 then return c:CheckRemoveOverlayCard(tp,1,REASON_COST) end if chk==0 then return c:CheckRemoveOverlayCard(tp,1,REASON_COST) end
local rt=math.min(Duel.GetTargetCount(nil,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,nil),c:GetOverlayCount()) local rt=Duel.GetTargetCount(nil,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,nil)
c:RemoveOverlayCard(tp,1,rt,REASON_COST) local ct=c:RemoveOverlayCard(tp,1,rt,REASON_COST)
local ct=Duel.GetOperatedGroup():GetCount()
e:SetLabel(ct) e:SetLabel(ct)
end end
function c97584719.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c97584719.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
......
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