Commit ebc0935e authored by POLYMER's avatar POLYMER

fix

parent 6db22e31
...@@ -23,16 +23,20 @@ end ...@@ -23,16 +23,20 @@ end
function c11513089.ddtg(e,tp,eg,ep,ev,re,r,rp,chk) function c11513089.ddtg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
if chk==0 then return true end if chk==0 then return true end
local g=Duel.GetMatchingGroup(c11513089.filter,tp,0,LOCATION_MZONE,c,c) local g=Duel.GetMatchingGroup(c11513089.filter,tp,LOCATION_MZONE,LOCATION_MZONE,c,c)
local atk=g:GetMaxGroup(Card.GetAttack):GetFirst():GetAttack() local atk=g:Filter(Card.IsAttackAbove,nil,0):GetMaxGroup(Card.GetAttack):GetFirst():GetTextAttack()
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,g:GetCount(),0,0) Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,g:GetCount(),0,0)
Duel.SetOperationInfo(0,CATEGORY_DAMAGE,nil,0,1-tp,atk) if atk then
if atk<0 then atk=0 end
Duel.SetOperationInfo(0,CATEGORY_DAMAGE,nil,0,1-tp,atk)
end
end end
function c11513089.ddop(e,tp,eg,ep,ev,re,r,rp) function c11513089.ddop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local g=Duel.GetMatchingGroup(c11513089.filter,tp,0,LOCATION_MZONE,c,c) local g=Duel.GetMatchingGroup(c11513089.filter,tp,LOCATION_MZONE,LOCATION_MZONE,c,c)
local atk=g:GetMaxGroup(Card.GetAttack):GetFirst():GetAttack() local atk=g:Filter(Card.IsAttackAbove,nil,0):GetMaxGroup(Card.GetAttack):GetFirst():GetTextAttack()
if Duel.Destroy(g,REASON_EFFECT)~=0 then if atk and atk<0 then atk=0 end
if Duel.Destroy(g,REASON_EFFECT)~=0 and atk then
Duel.Damage(1-tp,atk,REASON_EFFECT) Duel.Damage(1-tp,atk,REASON_EFFECT)
end end
end end
\ No newline at end of file
...@@ -60,7 +60,7 @@ function c28366277.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -60,7 +60,7 @@ function c28366277.activate(e,tp,eg,ep,ev,re,r,rp)
if #tg==0 then return end if #tg==0 then return end
Duel.ConfirmCards(1-tp,tg) Duel.ConfirmCards(1-tp,tg)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local dg=Duel.SelectMatchingCard(tp,nil,tp,LOCATION_HAND+LOCATION_ONFIELD,0,#tg,#tg,nil) local dg=Duel.SelectMatchingCard(tp,nil,tp,LOCATION_HAND+LOCATION_ONFIELD,0,#tg,#tg,aux.ExceptThisCard(e))
Duel.HintSelection(dg) Duel.HintSelection(dg)
Duel.Destroy(dg,REASON_EFFECT) Duel.Destroy(dg,REASON_EFFECT)
end end
......
...@@ -60,7 +60,7 @@ end ...@@ -60,7 +60,7 @@ end
function c28368431.chkfilter(c,p) function c28368431.chkfilter(c,p)
return c:IsPreviousLocation(LOCATION_MZONE) and c:IsPreviousControler(p) and c:IsReason(REASON_DESTROY) return c:IsPreviousLocation(LOCATION_MZONE) and c:IsPreviousControler(p) and c:IsReason(REASON_DESTROY)
end end
function c28368431.spcon(e,tp,eg,ep,ev,re,r,rp) function c28368431.regcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c28368431.chkfilter,1,nil,tp) return eg:IsExists(c28368431.chkfilter,1,nil,tp)
end end
function c28368431.regop(e,tp,eg,ep,ev,re,r,rp) function c28368431.regop(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -198,7 +198,7 @@ function s.rmop1(e,tp,eg,ep,ev,re,r,rp) ...@@ -198,7 +198,7 @@ function s.rmop1(e,tp,eg,ep,ev,re,r,rp)
Duel.SetLP(tp,Duel.GetLP(tp)-g:GetCount()*1000) Duel.SetLP(tp,Duel.GetLP(tp)-g:GetCount()*1000)
if Duel.GetLP(tp)<=0 then if Duel.GetLP(tp)<=0 then
Duel.SetLP(tp,4000) Duel.SetLP(tp,4000)
Duel.RaiseEvent(e:GetHandler(),EVENT_CUSTOM+65820000,e,REASON_COST,tp,tp,4000) Duel.RaiseEvent(e:GetHandler(),EVENT_CUSTOM+65820000,e,REASON_EFFECT,tp,tp,4000)
end end
end end
end end
\ No newline at end of file
...@@ -62,7 +62,6 @@ function s.op1(e,tp,eg,ep,ev,re,r,rp) ...@@ -62,7 +62,6 @@ function s.op1(e,tp,eg,ep,ev,re,r,rp)
if not c:IsRelateToChain() then return end if not c:IsRelateToChain() then return end
Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP) Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
end end
function s.filter2(c) function s.filter2(c)
return c:IsSetCard(0x716) and c:IsType(TYPE_SPELL+TYPE_TRAP) and (c:IsAbleToHand() or c:IsSSetable()) return c:IsSetCard(0x716) and c:IsType(TYPE_SPELL+TYPE_TRAP) and (c:IsAbleToHand() or c:IsSSetable())
end end
...@@ -139,9 +138,9 @@ function yume.prism.Cost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -139,9 +138,9 @@ function yume.prism.Cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return yume.prism.checkCounter(tp) end if chk==0 then return yume.prism.checkCounter(tp) end
yume.prism.regCostLimit(e,tp) yume.prism.regCostLimit(e,tp)
end end
function yume.prism.CounterFilter(re,tp,cid) function yume.prism.CounterFilter(c)
return c:IsLocation(LOCATION_ONFIELD) and c:GetSequence()<5 return c:IsLocation(LOCATION_MZONE) and c:GetSequence()<5
or not c:IsLocation(LOCATION_ONFIELD) and c:GetPreviousSequence()<5 or not c:IsLocation(LOCATION_MZONE) and c:GetPreviousSequence()<5
end end
function yume.prism.regCostLimit(e,tp) function yume.prism.regCostLimit(e,tp)
--zone limit --zone limit
......
...@@ -4,7 +4,7 @@ function s.initial_effect(c) ...@@ -4,7 +4,7 @@ function s.initial_effect(c)
if not (yume and yume.prism) then if not (yume and yume.prism) then
yume=yume or {} yume=yume or {}
yume.import_flag=true yume.import_flag=true
c:CopyEffect(71404000,0) c:CopyEffect(71405000,0)
yume.import_flag=false yume.import_flag=false
end end
yume.prism.addCounter() yume.prism.addCounter()
......
...@@ -4,7 +4,7 @@ function s.initial_effect(c) ...@@ -4,7 +4,7 @@ function s.initial_effect(c)
if not (yume and yume.prism) then if not (yume and yume.prism) then
yume=yume or {} yume=yume or {}
yume.import_flag=true yume.import_flag=true
c:CopyEffect(71404000,0) c:CopyEffect(71405000,0)
yume.import_flag=false yume.import_flag=false
end end
yume.prism.addCounter() yume.prism.addCounter()
......
...@@ -4,7 +4,7 @@ function s.initial_effect(c) ...@@ -4,7 +4,7 @@ function s.initial_effect(c)
if not (yume and yume.prism) then if not (yume and yume.prism) then
yume=yume or {} yume=yume or {}
yume.import_flag=true yume.import_flag=true
c:CopyEffect(71404000,0) c:CopyEffect(71405000,0)
yume.import_flag=false yume.import_flag=false
end end
yume.prism.addCounter() yume.prism.addCounter()
......
...@@ -4,7 +4,7 @@ function s.initial_effect(c) ...@@ -4,7 +4,7 @@ function s.initial_effect(c)
if not (yume and yume.prism) then if not (yume and yume.prism) then
yume=yume or {} yume=yume or {}
yume.import_flag=true yume.import_flag=true
c:CopyEffect(71404000,0) c:CopyEffect(71405000,0)
yume.import_flag=false yume.import_flag=false
end end
yume.prism.addCounter() yume.prism.addCounter()
......
...@@ -30,7 +30,7 @@ function s.initial_effect(c) ...@@ -30,7 +30,7 @@ function s.initial_effect(c)
e3:SetCost(s.cost1) e3:SetCost(s.cost1)
e3:SetOperation(s.op3) e3:SetOperation(s.op3)
c:RegisterEffect(e3) c:RegisterEffect(e3)
local e3=e2:Clone() local e3a=e3:Clone()
e3a:SetType(EFFECT_TYPE_QUICK_O) e3a:SetType(EFFECT_TYPE_QUICK_O)
e3a:SetCode(EVENT_FREE_CHAIN) e3a:SetCode(EVENT_FREE_CHAIN)
e3a:SetHintTiming(0,TIMINGS_CHECK_MONSTER+TIMING_END_PHASE) e3a:SetHintTiming(0,TIMINGS_CHECK_MONSTER+TIMING_END_PHASE)
......
...@@ -4,7 +4,7 @@ function s.initial_effect(c) ...@@ -4,7 +4,7 @@ function s.initial_effect(c)
if not (yume and yume.prism) then if not (yume and yume.prism) then
yume=yume or {} yume=yume or {}
yume.import_flag=true yume.import_flag=true
c:CopyEffect(71404000,0) c:CopyEffect(71405000,0)
yume.import_flag=false yume.import_flag=false
end end
yume.prism.addCounter() yume.prism.addCounter()
......
...@@ -69,7 +69,7 @@ end ...@@ -69,7 +69,7 @@ end
function s.op1(e,tp,eg,ep,ev,re,r,rp) function s.op1(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if tc:IsRelateToChain() then if tc:IsRelateToChain() then
Duel.SSet(tp,tc)~=0 Duel.SSet(tp,tc)
end end
end end
function s.cost3(e,tp,eg,ep,ev,re,r,rp,chk) function s.cost3(e,tp,eg,ep,ev,re,r,rp,chk)
......
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