Commit 40b8dbb4 authored by mercury233's avatar mercury233

fix

parent 35c2bb19
...@@ -45,6 +45,8 @@ function c7986397.selcheck(c,mg1,dg,mat1,rc) ...@@ -45,6 +45,8 @@ function c7986397.selcheck(c,mg1,dg,mat1,rc)
mat:AddCard(c) mat:AddCard(c)
if c:IsLocation(LOCATION_DECK) then if c:IsLocation(LOCATION_DECK) then
mg:Sub(dg) mg:Sub(dg)
else
mg:RemoveCard(c)
end end
local sum=mat:GetSum(Card.GetRitualLevel,rc) local sum=mat:GetSum(Card.GetRitualLevel,rc)
local lv=rc:GetLevel()-sum local lv=rc:GetLevel()-sum
...@@ -75,9 +77,10 @@ function c7986397.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -75,9 +77,10 @@ function c7986397.activate(e,tp,eg,ep,ev,re,r,rp)
local lv=tc:GetLevel() local lv=tc:GetLevel()
if ft<=0 then if ft<=0 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
local mat2=mg:FilterSelect(tp,c7986397.mfilterf,1,1,nil,tp,mg,dg,tc) local mat2=mg:FilterSelect(tp,c7986397.mfilterf,1,1,nil,tp,mg,dg,tc):GetFirst()
lv=lv-mat2:GetFirst():GetRitualLevel(tc) lv=lv-mat2:GetRitualLevel(tc)
mat:Merge(mat2) mat:AddCard(mat2)
mg:RemoveCard(mat2)
end end
while lv~=0 do while lv~=0 do
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
......
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