Commit 213445ae authored by GuGu's avatar GuGu

Update c74561032.lua

parent 1f43c056
Pipeline #32844 passed with stage
in 18 seconds
......@@ -43,8 +43,12 @@ function cCardno.reop(e,tp,eg,ep,ev,re,r,rp)
end
local g = Duel.GetMatchingGroup(Card.IsCode,tp,0,LOCATION_HAND+LOCATION_ONFIELD,nil,ac)
if g:GetCount() > 0 then
local num=Duel.SendtoGrave(g,REASON_RULE)
Duel.SetLP(1-tp,Duel.GetLP(1-tp)-2000*num)
Duel.SendtoGrave(g,REASON_RULE)
local g=Duel.GetOperatedGroup()
local num=g:FilterCount(Card.IsLocation,nil,LOCATION_GRAVE)
if num>0 then
Duel.SetLP(1-tp,Duel.GetLP(1-tp)-2000*num)
end
else
Duel.SetLP(tp,Duel.GetLP(tp)-1000)
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