Commit 2f4d9196 authored by POLYMER's avatar POLYMER

fix

parent eae4d6e4
...@@ -45,7 +45,7 @@ function s.synop(e,tp,eg,ep,ev,re,r,rp) ...@@ -45,7 +45,7 @@ function s.synop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) or Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 then return end if not c:IsRelateToEffect(e) or Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 then return end
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if not tc:IsRelateToEffect(e) or tc:IsFacedown() then return end if tc:IsControler(tp) and not tc:IsRelateToEffect(e) or tc:IsFacedown() then return end
Duel.AdjustAll() Duel.AdjustAll()
local mg=Group.FromCards(c,tc) local mg=Group.FromCards(c,tc)
if mg:FilterCount(Card.IsLocation,nil,LOCATION_MZONE)<2 then return end if mg:FilterCount(Card.IsLocation,nil,LOCATION_MZONE)<2 then return end
......
...@@ -59,11 +59,14 @@ function s.spop(e, tp, eg, ep, ev, re, r, rp) ...@@ -59,11 +59,14 @@ function s.spop(e, tp, eg, ep, ev, re, r, rp)
Duel.Draw(tp, 2, REASON_EFFECT) Duel.Draw(tp, 2, REASON_EFFECT)
end end
end end
function s.ctfilter(c) function s.ctfilter(c,tp)
return not (c:IsReason(REASON_DRAW) or c:IsSetCard(0x144e)) return not (c:IsReason(REASON_DRAW) or c:IsSetCard(0x144e)) and c:IsControler(tp)
end end
function s.ctop(e, tp, eg, ep, ev, re, r, rp) function s.ctop(e, tp, eg, ep, ev, re, r, rp)
s[tp] = s[tp] + eg:FilterCount(s.ctfilter, nil) local ct0=eg:FilterCount(s.ctfilter,nil,0)
local ct1=eg:FilterCount(s.ctfilter,nil,1)
s[0]=s[0]+ct0
s[1]=s[1]+ct1
end end
function s.resetop(e, tp, eg, ep, ev, re, r, rp) function s.resetop(e, tp, eg, ep, ev, re, r, rp)
s[0] = 0 s[0] = 0
......
...@@ -65,7 +65,7 @@ function c98920610.gfilter(c) ...@@ -65,7 +65,7 @@ function c98920610.gfilter(c)
end end
function c98920610.condition(e,tp,eg,ep,ev,re,r,rp) function c98920610.condition(e,tp,eg,ep,ev,re,r,rp)
local loc=Duel.GetChainInfo(ev,CHAININFO_TRIGGERING_LOCATION) local loc=Duel.GetChainInfo(ev,CHAININFO_TRIGGERING_LOCATION)
return loc==LOCATION_GRAVE or loc==LOCATION_HAND or loc==LOCATION_REMOVED return ep==1-tp and (loc==LOCATION_GRAVE or loc==LOCATION_HAND or loc==LOCATION_REMOVED)
end end
function c98920610.operation(e,tp,eg,ep,ev,re,r,rp) function c98920610.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateEffect(ev) Duel.NegateEffect(ev)
......
...@@ -48,7 +48,7 @@ function c98920706.damcon2(e,tp,eg,ep,ev,re,r,rp) ...@@ -48,7 +48,7 @@ function c98920706.damcon2(e,tp,eg,ep,ev,re,r,rp)
return rp==tp return rp==tp
end end
function c98920706.damtg2(e,tp,eg,ep,ev,re,r,rp,chk) function c98920706.damtg2(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return eg:GetCount()==1 and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and eg:GetCount()==1 and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end
local g=eg:Filter(c98920706.sfilter,nil) local g=eg:Filter(c98920706.sfilter,nil)
Duel.SetTargetCard(g) Duel.SetTargetCard(g)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
......
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