Commit caa2e31f authored by VanillaSalt's avatar VanillaSalt

fix

parent 7af40264
...@@ -22,6 +22,10 @@ end ...@@ -22,6 +22,10 @@ end
function c36278828.operation(e,tp,eg,ep,ev,re,r,rp) function c36278828.operation(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) and tc:IsCanAddCounter(0x9,1) then if tc:IsRelateToEffect(e) and tc:IsCanAddCounter(0x9,1) then
local atk=tc:GetAttack()
tc:AddCounter(0x9,1) tc:AddCounter(0x9,1)
if atk>0 and tc:GetAttack()==0 then
Duel.RaiseEvent(tc,54306223,e,0,0,0,0)
end
end end
end end
...@@ -27,23 +27,19 @@ function c54306223.initial_effect(c) ...@@ -27,23 +27,19 @@ function c54306223.initial_effect(c)
local e4=Effect.CreateEffect(c) local e4=Effect.CreateEffect(c)
e4:SetDescription(aux.Stringid(54306223,1)) e4:SetDescription(aux.Stringid(54306223,1))
e4:SetCategory(CATEGORY_DESTROY) e4:SetCategory(CATEGORY_DESTROY)
e4:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F) e4:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_F)
e4:SetCode(54306223) e4:SetCode(54306223)
e4:SetRange(LOCATION_FZONE)
e4:SetTarget(c54306223.destg) e4:SetTarget(c54306223.destg)
e4:SetOperation(c54306223.desop) e4:SetOperation(c54306223.desop)
c:RegisterEffect(e4) c:RegisterEffect(e4)
local g=Group.CreateGroup()
g:KeepAlive()
e2:SetLabelObject(g)
e4:SetLabelObject(g)
end end
function c54306223.atkval(e,c) function c54306223.atkval(e,c)
return c:GetCounter(0x9)*-500 return c:GetCounter(0x9)*-500
end end
function c54306223.acop(e,tp,eg,ep,ev,re,r,rp) function c54306223.acop(e,tp,eg,ep,ev,re,r,rp)
if not e:GetHandler():IsRelateToEffect(e) then return end if not e:GetHandler():IsRelateToEffect(e) then return end
local g=e:GetLabelObject() local g=Group.CreateGroup()
g:Clear()
for i=0,4 do for i=0,4 do
local tc=Duel.GetFieldCard(tp,LOCATION_MZONE,i) local tc=Duel.GetFieldCard(tp,LOCATION_MZONE,i)
if tc and tc:IsCanAddCounter(0x9,1) and not tc:IsSetCard(0x50) then if tc and tc:IsCanAddCounter(0x9,1) and not tc:IsSetCard(0x50) then
...@@ -65,19 +61,18 @@ function c54306223.acop(e,tp,eg,ep,ev,re,r,rp) ...@@ -65,19 +61,18 @@ function c54306223.acop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
if g:GetCount()>0 then if g:GetCount()>0 then
Duel.RaiseSingleEvent(e:GetHandler(),54306223,e,0,0,0,0) Duel.RaiseEvent(g,54306223,e,0,0,0,0)
end end
end end
function c54306223.destg(e,tp,eg,ep,ev,re,r,rp,chk) function c54306223.destg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
local g=e:GetLabelObject() Duel.SetTargetCard(eg)
Duel.SetTargetCard(g) local g=eg:Filter(Card.IsDestructable,nil)
local sg=g:Filter(Card.IsDestructable,nil) Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,g:GetCount(),0,0)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,sg,sg:GetCount(),0,0)
end end
function c54306223.desop(e,tp,eg,ep,ev,re,r,rp) function c54306223.desop(e,tp,eg,ep,ev,re,r,rp)
if not e:GetHandler():IsRelateToEffect(e) then return end if not e:GetHandler():IsRelateToEffect(e) then return end
local g=e:GetLabelObject():Filter(Card.IsRelateToEffect,nil,e) local g=eg:Filter(Card.IsRelateToEffect,nil,e)
if g:GetCount()>0 then if g:GetCount()>0 then
Duel.Destroy(g,REASON_EFFECT) Duel.Destroy(g,REASON_EFFECT)
end end
......
...@@ -36,7 +36,11 @@ function c60728397.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -36,7 +36,11 @@ function c60728397.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.SendtoGrave(g,REASON_EFFECT) Duel.SendtoGrave(g,REASON_EFFECT)
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) and tc:IsCanAddCounter(0x9,2) and g:GetFirst():IsLocation(LOCATION_GRAVE) then if tc:IsRelateToEffect(e) and tc:IsCanAddCounter(0x9,2) and g:GetFirst():IsLocation(LOCATION_GRAVE) then
local atk=tc:GetAttack()
tc:AddCounter(0x9,2) tc:AddCounter(0x9,2)
if atk>0 and tc:GetAttack()==0 then
Duel.RaiseEvent(tc,54306223,e,0,0,0,0)
end
end end
end end
end end
...@@ -32,6 +32,10 @@ end ...@@ -32,6 +32,10 @@ end
function c73899015.operation(e,tp,eg,ep,ev,re,r,rp) function c73899015.operation(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) and tc:IsCanAddCounter(0x9,1) then if tc:IsRelateToEffect(e) and tc:IsCanAddCounter(0x9,1) then
local atk=tc:GetAttack()
tc:AddCounter(0x9,1) tc:AddCounter(0x9,1)
if atk>0 and tc:GetAttack()==0 then
Duel.RaiseEvent(tc,54306223,e,0,0,0,0)
end
end end
end end
...@@ -25,6 +25,10 @@ function c77972406.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -25,6 +25,10 @@ function c77972406.activate(e,tp,eg,ep,ev,re,r,rp)
if tc:IsRelateToEffect(e) and Duel.NegateAttack() then if tc:IsRelateToEffect(e) and Duel.NegateAttack() then
Duel.SkipPhase(1-tp,PHASE_BATTLE,RESET_PHASE+PHASE_BATTLE,1) Duel.SkipPhase(1-tp,PHASE_BATTLE,RESET_PHASE+PHASE_BATTLE,1)
Duel.BreakEffect() Duel.BreakEffect()
local atk=tc:GetAttack()
tc:AddCounter(0x9,1) tc:AddCounter(0x9,1)
if atk>0 and tc:GetAttack()==0 then
Duel.RaiseEvent(tc,54306223,e,0,0,0,0)
end
end end
end end
...@@ -32,6 +32,10 @@ end ...@@ -32,6 +32,10 @@ end
function c9284723.operation(e,tp,eg,ep,ev,re,r,rp) function c9284723.operation(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) and tc:IsCanAddCounter(0x9,2) then if tc:IsRelateToEffect(e) and tc:IsCanAddCounter(0x9,2) then
local atk=tc:GetAttack()
tc:AddCounter(0x9,2) tc:AddCounter(0x9,2)
if atk>0 and tc:GetAttack()==0 then
Duel.RaiseEvent(tc,54306223,e,0,0,0,0)
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