Commit df4d1280 authored by mercury233's avatar mercury233

fix

parent 71a4a1b2
...@@ -30,7 +30,7 @@ function c100408004.initial_effect(c) ...@@ -30,7 +30,7 @@ function c100408004.initial_effect(c)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function c100408004.repfilter(c,tp) function c100408004.repfilter(c,tp)
return c:IsFaceup() and c:IsControler(tp) and c:IsLocation(LOCATION_MZONE) and c:IsSetCard(0x8e) return c:IsFaceup() and c:IsControler(tp) and c:IsLocation(LOCATION_MZONE)
and (c:IsReason(REASON_BATTLE) or (c:IsReason(REASON_EFFECT) and c:GetReasonPlayer()~=tp)) and (c:IsReason(REASON_BATTLE) or (c:IsReason(REASON_EFFECT) and c:GetReasonPlayer()~=tp))
end end
function c100408004.reptg(e,tp,eg,ep,ev,re,r,rp,chk) function c100408004.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
......
...@@ -18,7 +18,7 @@ function c100408008.tgfilter1(c,tp) ...@@ -18,7 +18,7 @@ function c100408008.tgfilter1(c,tp)
and Duel.IsExistingMatchingCard(c100408008.tgfilter2,tp,LOCATION_DECK,0,1,nil,lv) and Duel.IsExistingMatchingCard(c100408008.tgfilter2,tp,LOCATION_DECK,0,1,nil,lv)
end end
function c100408008.tgfilter2(c,lv) function c100408008.tgfilter2(c,lv)
return c:IsSetCard(0x8e) and not c:IsLevel(lv) and c:IsAbleToGrave() return c:IsSetCard(0x8e) and c:IsLevelAbove(0) and not c:IsLevel(lv) and c:IsAbleToGrave()
end end
function c100408008.spfilter1(c,tp) function c100408008.spfilter1(c,tp)
return c:IsAbleToGrave() and Duel.GetMZoneCount(tp,c)>0 return c:IsAbleToGrave() and Duel.GetMZoneCount(tp,c)>0
...@@ -79,7 +79,7 @@ function c100408008.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -79,7 +79,7 @@ function c100408008.activate(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local tg=Duel.SelectMatchingCard(tp,c100408008.spfilter1,tp,LOCATION_MZONE,0,1,1,nil,tp) local tg=Duel.SelectMatchingCard(tp,c100408008.spfilter1,tp,LOCATION_MZONE,0,1,1,nil,tp)
if g:GetCount()>0 and Duel.SendtoGrave(g,REASON_EFFECT)~=0 and g:GetFirst():IsLocation(LOCATION_GRAVE) if tg:GetCount()>0 and Duel.SendtoGrave(tg,REASON_EFFECT)~=0 and tg:GetFirst():IsLocation(LOCATION_GRAVE)
and tc:IsRelateToEffect(e) then and tc:IsRelateToEffect(e) then
Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP) Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP)
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