Commit c035abb7 authored by wind2009's avatar wind2009

Fix 黒薔薇の華園

parent 71200ef1
Pipeline #39235 passed with stages
in 3 minutes and 38 seconds
...@@ -48,21 +48,26 @@ end ...@@ -48,21 +48,26 @@ end
function s.damtg(e,tp,eg,ep,ev,re,r,rp,chk) function s.damtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
local dam=Duel.GetMatchingGroupCount(s.cfilter,tp,LOCATION_GRAVE+LOCATION_REMOVED,0,nil)*100 local dam=Duel.GetMatchingGroupCount(s.cfilter,tp,LOCATION_GRAVE+LOCATION_REMOVED,0,nil)*100
if re:GetHandler():IsCode(73580471) then if dam>0 then
dam=dam+2400 if re:GetHandler():IsCode(73580471) then
e:SetLabel(1) dam=dam+2400
else e:SetLabel(1)
e:SetLabel(0) else
e:SetLabel(0)
end
Duel.SetTargetPlayer(1-tp)
Duel.SetTargetParam(dam)
Duel.SetOperationInfo(0,CATEGORY_DAMAGE,nil,0,1-tp,dam)
end end
Duel.SetTargetPlayer(1-tp)
Duel.SetTargetParam(dam)
Duel.SetOperationInfo(0,CATEGORY_DAMAGE,nil,0,1-tp,dam)
end end
function s.damop(e,tp,eg,ep,ev,re,r,rp) function s.damop(e,tp,eg,ep,ev,re,r,rp)
local p=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER) local p=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER)
local dam=Duel.GetMatchingGroupCount(s.cfilter,tp,LOCATION_GRAVE+LOCATION_REMOVED,0,nil)*100 local dam=Duel.GetMatchingGroupCount(s.cfilter,tp,LOCATION_GRAVE+LOCATION_REMOVED,0,nil)*100
if e:GetLabel()==1 then if dam>0 then
dam=dam+2400 local val=Duel.Damage(p,dam,REASON_EFFECT)
if val>0 and Duel.GetLP(p)>0 and e:GetLabel()==1 then
Duel.BreakEffect()
Duel.Damage(p,2400,REASON_EFFECT)
end
end end
Duel.Damage(p,dam,REASON_EFFECT)
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