Commit 7621b11d authored by mercury233's avatar mercury233 Committed by GitHub

fix

parent 059843d4
...@@ -41,15 +41,18 @@ end ...@@ -41,15 +41,18 @@ end
function c49820233.damop(e,tp,eg,ep,ev,re,r,rp) function c49820233.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 ct=Duel.GetFieldGroupCount(tp,LOCATION_ONFIELD,LOCATION_ONFIELD) local ct=Duel.GetFieldGroupCount(tp,LOCATION_ONFIELD,LOCATION_ONFIELD)
if ct>0 and Duel.Damage(p,ct*200,REASON_EFFECT)~=0 and e:GetLabel()==1 then if ct>0 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY) Duel.Damage(p,ct*200,REASON_EFFECT)
local g=Duel.SelectMatchingCard(tp,nil,tp,0,LOCATION_MZONE,1,1,nil) if e:GetLabel()==1 then
if g:GetCount()>0 then Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
Duel.BreakEffect() local g=Duel.SelectMatchingCard(tp,nil,tp,0,LOCATION_MZONE,1,1,nil)
Duel.HintSelection(g) if g:GetCount()>0 then
if Duel.Destroy(g,REASON_EFFECT)~=0 then Duel.BreakEffect()
local dam=g:GetFirst():GetBaseAttack() Duel.HintSelection(g)
Duel.Damage(p,dam,REASON_EFFECT) if Duel.Destroy(g,REASON_EFFECT)~=0 then
local dam=g:GetFirst():GetBaseAttack()
Duel.Damage(p,dam,REASON_EFFECT)
end
end end
end end
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