Commit 7b908536 authored by Tachibana's avatar Tachibana

E

parent 506466eb
No preview for this file type
...@@ -35,13 +35,14 @@ function c66914000.condition(e,tp,eg,ep,ev,re,r,rp) ...@@ -35,13 +35,14 @@ function c66914000.condition(e,tp,eg,ep,ev,re,r,rp)
end end
function c66914000.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c66914000.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local count=0 local count=0
for i=1,ev do local chain=Duel.GetCurrentChain()
for i=1,chain do
local te,tgp=Duel.GetChainInfo(i,CHAININFO_TRIGGERING_EFFECT,CHAININFO_TRIGGERING_PLAYER) local te,tgp=Duel.GetChainInfo(i,CHAININFO_TRIGGERING_EFFECT,CHAININFO_TRIGGERING_PLAYER)
if tgp==tp then if tgp==tp then
count=count+1 count=count+1
end end
end end
if chk==0 then return count<3 or Duel.IsPlayerCanDraw(tp,1) end if chk==0 then return (count<3 or Duel.IsPlayerCanDraw(tp,1)) end
local cat=0 local cat=0
if count>=2 then if count>=2 then
cat=cat|CATEGORY_DAMAGE cat=cat|CATEGORY_DAMAGE
......
...@@ -52,7 +52,6 @@ function c66914008.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -52,7 +52,6 @@ function c66914008.activate(e,tp,eg,ep,ev,re,r,rp)
dg:AddCard(tc) dg:AddCard(tc)
end end
end end
Debug.Message(dg:GetCount())
if dg:GetCount()>=1 then if dg:GetCount()>=1 then
Duel.Damage(1-tp,count*1500,REASON_EFFECT) Duel.Damage(1-tp,count*1500,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