Commit 7153e87b authored by mercury233's avatar mercury233

fix

parent a2c0a560
...@@ -26,7 +26,8 @@ end ...@@ -26,7 +26,8 @@ end
function c101009034.thcost(e,tp,eg,ep,ev,re,r,rp,chk) function c101009034.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckReleaseGroup(tp,c101009034.cfilter,1,nil,tp) end if chk==0 then return Duel.CheckReleaseGroup(tp,c101009034.cfilter,1,nil,tp) end
local g=Duel.SelectReleaseGroup(tp,c101009034.cfilter,1,1,nil,tp) local g=Duel.SelectReleaseGroup(tp,c101009034.cfilter,1,1,nil,tp)
e:SetLabel(c101009034.getsum(g:GetFirst())) local sum=math.max(g:GetFirst():GetTextAttack(),0)+math.max(g:GetFirst():GetTextDefense(),0)
e:SetLabel(sum)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
end end
function c101009034.thtg(e,tp,eg,ep,ev,re,r,rp,chk) function c101009034.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
......
...@@ -40,6 +40,7 @@ function c101009065.reptg1(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -40,6 +40,7 @@ function c101009065.reptg1(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(101009065,0)) Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(101009065,0))
sg=sg:Select(tp,1,1,nil) sg=sg:Select(tp,1,1,nil)
end end
sg:KeepAlive()
e:SetLabelObject(sg) e:SetLabelObject(sg)
return true return true
else return false end else return false end
...@@ -50,6 +51,8 @@ function c101009065.repval(e,c) ...@@ -50,6 +51,8 @@ function c101009065.repval(e,c)
end end
function c101009065.repop1(e,tp,eg,ep,ev,re,r,rp) function c101009065.repop1(e,tp,eg,ep,ev,re,r,rp)
Duel.Destroy(e:GetHandler(),REASON_EFFECT+REASON_REPLACE) Duel.Destroy(e:GetHandler(),REASON_EFFECT+REASON_REPLACE)
local g=e:GetLabelObject()
g:DeleteGroup()
end end
function c101009065.repfilter2(c,tp) function c101009065.repfilter2(c,tp)
return c:IsLocation(LOCATION_ONFIELD) and c:IsControler(1-tp) return c:IsLocation(LOCATION_ONFIELD) and c:IsControler(1-tp)
...@@ -64,10 +67,13 @@ function c101009065.reptg2(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -64,10 +67,13 @@ function c101009065.reptg2(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(101009065,0)) Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(101009065,0))
sg=sg:Select(tp,1,1,nil) sg=sg:Select(tp,1,1,nil)
end end
sg:KeepAlive()
e:SetLabelObject(sg) e:SetLabelObject(sg)
return true return true
else return false end else return false end
end end
function c101009065.repop2(e,tp,eg,ep,ev,re,r,rp) function c101009065.repop2(e,tp,eg,ep,ev,re,r,rp)
Duel.Remove(e:GetHandler(),POS_FACEUP,REASON_EFFECT) Duel.Remove(e:GetHandler(),POS_FACEUP,REASON_EFFECT)
local g=e:GetLabelObject()
g:DeleteGroup()
end 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