Commit 41985b00 authored by nekrozar's avatar nekrozar Committed by mercury233

fix (#880)

parent 51037f4b
...@@ -139,7 +139,7 @@ function c13455674.spcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -139,7 +139,7 @@ function c13455674.spcon(e,tp,eg,ep,ev,re,r,rp)
return c:IsPreviousLocation(LOCATION_MZONE) and c:IsSummonType(SUMMON_TYPE_SYNCHRO) and bit.band(r,REASON_EFFECT+REASON_BATTLE)~=0 return c:IsPreviousLocation(LOCATION_MZONE) and c:IsSummonType(SUMMON_TYPE_SYNCHRO) and bit.band(r,REASON_EFFECT+REASON_BATTLE)~=0
end end
function c13455674.spfilter(c,e,tp) function c13455674.spfilter(c,e,tp)
return c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsFaceup() and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c13455674.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c13455674.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_REMOVED) and c13455674.spfilter(chkc,e,tp) and chkc~=e:GetHandler() end if chkc then return chkc:IsLocation(LOCATION_REMOVED) and c13455674.spfilter(chkc,e,tp) and chkc~=e:GetHandler() end
......
...@@ -43,7 +43,7 @@ function c53180020.thop(e,tp,eg,ep,ev,re,r,rp) ...@@ -43,7 +43,7 @@ function c53180020.thop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c53180020.spfilter(c,e,tp) function c53180020.spfilter(c,e,tp)
return c:IsSetCard(0xb4) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsFaceup() and c:IsSetCard(0xb4) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c53180020.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c53180020.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_REMOVED) and chkc:IsControler(tp) and c53180020.spfilter(chkc,e,tp) and chkc~=e:GetHandler() end if chkc then return chkc:IsLocation(LOCATION_REMOVED) and chkc:IsControler(tp) and c53180020.spfilter(chkc,e,tp) and chkc~=e:GetHandler() end
......
...@@ -50,7 +50,7 @@ function c56907986.spcost2(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -50,7 +50,7 @@ function c56907986.spcost2(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.PayLPCost(tp,500) Duel.PayLPCost(tp,500)
end end
function c56907986.spfilter2(c,e,tp) function c56907986.spfilter2(c,e,tp)
return c:IsSetCard(0xd2) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsFaceup() and c:IsSetCard(0xd2) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c56907986.sptg2(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c56907986.sptg2(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_REMOVED) and chkc:IsControler(tp) and c56907986.spfilter2(chkc,e,tp) end if chkc then return chkc:IsLocation(LOCATION_REMOVED) and chkc:IsControler(tp) and c56907986.spfilter2(chkc,e,tp) end
......
...@@ -11,7 +11,7 @@ function c80352158.initial_effect(c) ...@@ -11,7 +11,7 @@ function c80352158.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c80352158.filter(c,e,tp) function c80352158.filter(c,e,tp)
return c:IsRace(RACE_MACHINE+RACE_ROCK) and not c:IsSummonableCard() return c:IsFaceup() and c:IsRace(RACE_MACHINE+RACE_ROCK) and not c:IsSummonableCard()
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c80352158.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c80352158.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
......
...@@ -16,7 +16,7 @@ function c88845345.condition(e,tp,eg,ep,ev,re,r,rp) ...@@ -16,7 +16,7 @@ function c88845345.condition(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsLocation(LOCATION_GRAVE) and e:GetHandler():IsReason(REASON_BATTLE) return e:GetHandler():IsLocation(LOCATION_GRAVE) and e:GetHandler():IsReason(REASON_BATTLE)
end end
function c88845345.filter(c) function c88845345.filter(c)
return c:IsLevelBelow(3) and c:IsRace(RACE_BEAST+RACE_BEASTWARRIOR+RACE_WINDBEAST) and c:IsAbleToHand() return c:IsFaceup() and c:IsLevelBelow(3) and c:IsRace(RACE_BEAST+RACE_BEASTWARRIOR+RACE_WINDBEAST) and c:IsAbleToHand()
end end
function c88845345.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c88845345.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_REMOVED) and chkc:IsControler(tp) and c88845345.filter(chkc) end if chkc then return chkc:IsLocation(LOCATION_REMOVED) and chkc:IsControler(tp) and c88845345.filter(chkc) end
......
...@@ -59,7 +59,7 @@ function c89474727.spcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -59,7 +59,7 @@ function c89474727.spcon(e,tp,eg,ep,ev,re,r,rp)
return rp~=tp and e:GetHandler():GetPreviousControler()==tp return rp~=tp and e:GetHandler():GetPreviousControler()==tp
end end
function c89474727.spfilter(c,e,tp) function c89474727.spfilter(c,e,tp)
return c:IsType(TYPE_SYNCHRO) and c:IsRace(RACE_DRAGON) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsFaceup() and c:IsType(TYPE_SYNCHRO) and c:IsRace(RACE_DRAGON) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c89474727.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c89474727.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_REMOVED) and chkc:IsControler(tp) and c89474727.spfilter(chkc,e,tp) end if chkc then return chkc:IsLocation(LOCATION_REMOVED) and chkc:IsControler(tp) and c89474727.spfilter(chkc,e,tp) 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